//  (C) Porkolab 2003
//
//  A.1.5.
//  Constants in class 


// file: a.h
class X
{
    static const int  c1 = 7;    // ok, but remember definition
    static       int  i2 = 8;    // error: not const
    const        int  c3 = 9;    // error: not static
    static const int  c4 = f(2); // error: initializer not const
    static const float f = 3.14; // error: not integral 
};

const int X::c1;  // do not repeat initializer here...