c++ Programming Glossary: fooowner
Const method that modifies *this without const_cast http://stackoverflow.com/questions/3484233/const-method-that-modifies-this-without-const-cast const_cast or similar. Basically Foo stores a reference to FooOwner and vice versa and in Questionable Foo manages to modify itself.. stdafx.h #include iostream using namespace std class FooOwner class Foo FooOwner owner int data public Foo FooOwner owner_.. iostream using namespace std class FooOwner class Foo FooOwner owner int data public Foo FooOwner owner_ int data_ owner owner_..
|