On Jul 20, 2010, at 7:43 PM, "rodolfo at rodsoft dot org" > wrote:
The following code doesn't compile unless variable RUNTIME is
defined as a
"static const int" instead of an "enum":
This enum value has an anonymous type which is not valid in the
context of templates in C++03/98. It is
The following code doesn't compile unless variable RUNTIME is defined as a
"static const int" instead of an "enum":
#include
enum { RUNTIME = 0 };
// it compiles with the previous line commented out and the next commented in
// static const int RUNTIME=0;
template struct foo;
template class