++ (ISO/IEC 14882: 2003) const bool , .
pre-standard ++ ( ) . ++ . , , :
struct C
{
static const int N = 10;
};
char data[C::N];
N.
, ++ 1998 , . , , sizeof typeid, .
, , , , . , case, nontype.
struct C
{
static const int N = 10;
static const int U = N;
};
char data[C::N];
template<int> struct D;
template<> struct D<C::N> {};
, , , . :
struct C
{
static const int N = 10;
};
int main()
{
int i = C::N;
}
, , .