21 Apr
2014
21 Apr
'14
6:26 a.m.
We are seeing build problems with gcc 4.9 RC1 and Boost 1.55. Given the following test program:
#include
#include <iostream> enum class E {}; int main() { std::cout << boost::has_complement<E>() << std::endl; }
does it compiles if: - the enum class is not empty? Try to add a=0 for example (the standard says: "If the enumerator-list is empty, the underlying type is as if the enumeration had a single enumerator with value 0" - you specify the underlying type with ": int", which is the normal underlying type for empty enum class? Frédéric