// #include <boost/property_tree/json_parser.hpp>struct X{enum Labels { ERROR, ONE, TWO, THREE };// problem => ^^^^^};void f(){X::Labels r = X::ERROR;// problem => ^^^^^}
t.cpp(5): error C2059: syntax error : 'constant't.cpp(5): error C2143: syntax error : missing ';' before '}'t.cpp(5): error C2238: unexpected token(s) preceding ';'t.cpp(7): error C2059: syntax error : '}'t.cpp(7): error C2143: syntax error : missing ';' before '}'t.cpp(7): error C2059: syntax error : '}'t.cpp(11): error C2589: 'constant' : illegal token on right side of '::'t.cpp(11): error C2059: syntax error : '::'