0
4

1 回答 1

1

The error message is familiar to those with experience in C++ template programming. Ignore the sizeof part; the clue is in boost::STATIC_ASSERTION_FAILURE<false>. That type shouldn't be instantiated, you want boost::STATIC_ASSERTION_FAILURE<true>. But what exact expression is used as the template argument?

Your template instantiation error should have an instantiation stack, which leads from your code to the failure. Presumably it's checking

于 2012-06-26T07:22:04.970 回答