[kaldi]openfst error: ./../include/fst/float-weight.h:229:1: error: non-const...
kaldi, openfst_1.7error: ./../include/fst/float-weight.h:229:1: error: non-constant condition for static assertion
solution:
you can simply comment out or remove the static_assert lines in float-weight.h. That should be entirely harmless, and we'll most likely (re)move those lines very soon.With the static_assert's present, the best working hypothesis is that there is some misunderstanding or disagreement about which expressions are in fact constexpr in C++11. Your compilation fails for static_assert(TropicalWeight::NoWeight().Member(), "NoWeight not member"), which involves the expanded subexpression (+QNaNf >= -3.40282347e+38f) which the compiler considers to not be a constant expression. Either way, that's a problem. If the compiler is right, that's most definitely a problem; if the compiler is wrong, it still requires a workaround.
这是1.7.0版本的错误
很有意思的
错误
并且
这个解决方案,是作者提出来的 c++的版本
也是坑人
不兼容
页:
[1]