Re[2]: ругается на static const int i = 1; в теле класса, по
От: shank  
Дата: 22.06.07 22:33
Оценка: 1 (1)
Здравствуйте, _nn_, Вы писали:

__>Вы выберите одно из двух.


__>Но не то что вы написали.

Он правильно написал.

9.4.2 п.4
If a static data member is of const integral or const enumeration type, its declaration in the class definition can specify a constant-initializer which shall be an integral constant expression (5.19). In that case, the member can appear in integral constant expressions. The member shall still be defined in a namespace
scope if it is used in the program and the namespace scope definition shall not contain an initializer.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.