visual studio 2010 - Enumeration variables can't be set to values, are always <undefined value> in C++/CLI -


i have global enumeration

enum class ccolour{      black,      white,      gold }; 

that has own headerfile ccolour.h wich included in stdafx.h

i trying fix bugs (edit: i'm done that) , encountered following:

#include "stdafx.h" using namespace system;  int main(array<system::string ^> ^args) {     [...]     ccolour colour1 = white;     [...] } 

i've set watch colour1 in visual studio, , have other functions using ccolour too, in watch displayed <undefined value> no type specifier. (and small lock next icon, don't know if that's relevant)

this seems strange because every function uses ccolour works fine.

can explain why , how fix it?


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -