От: | Константин Л. | ||
Дата: | 03.05.06 10:38 | ||
Оценка: |
class Mutable
{
mutable int i;
public:
Mutable()
: i(0)
{}
void f() const
{
i = 10;
std::cout<<i;
}
};
int _tmain(int argc, _TCHAR* argv[])
{
const Mutable m;
m.f();
return 0;
}