I have
enum class ErrorLevel
{
VERBOSE,
DEBUG_,
INFORMATION,
WARNING,
ERROR
};
This works:
assertDetectionParameters( parameterSet, ErrorLevel::WARNING );
This does not:
assertDetectionParameters( parameterSet, ErrorLevel::ERROR );
Error 1 error C2589: 'constant' : illegal token on right side of '::'
Error 2 error C2059: syntax error : '::'
Resharper says:
"ErrorLevel does not name a value"
I get this error for certain names in my enum.
ERRORis probably already a preprocessor macro somewhere. Try changing it to something else, e.g.ERROR_, in order to test this hypothesis,UPPERCASE_NAMESfor macros and only for macros.ERRORis a perfectly legal name and must not be defined by any standard compliant compiler. Don't use rubbish compilers.