|
|
От: |
DarkGray
|
http://blog.metatech.ru/post/ogni-razrabotki.aspx |
| Дата: | 13.05.02 10:31 | ||
| Оценка: | 2 (1) | ||
struct MyConst
{
int i;
MyConst():i(4){}
};
const MyConst my_const;
void main()
{
(int&)my_const.i = 3;
std::cout << my_const.i << std::endl;
}