I am trying to debug a simple struct which contains an enum class with BOOST_SPIRIT_DEBUG_NODE, but I always get the compile error "C:\boost\boost\spirit\home\support\attributes.hpp:1226: error: cannot bind 'std::basic_ostream' lvalue to 'std::basic_ostream&&' near 'out << val;'"
I don't know why I get a rvalue error like that, I tried to to add a manual overload for the operator<< for the enum class but that didn't work either.
I am using boost 1.55 and try to compile with gcc 4.8 with MinGW 32-bit on Windows 8.1 x64.
When I change the enum class to a default c++ enum it works, but I'd like to use the new enum classes for proper namespace handling.