code:mutable
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | code:mutable [2019/11/13 12:54] (current) – created michfiel | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | class Foo | ||
+ | { | ||
+ | private: | ||
+ | mutable bool done_; | ||
+ | public: | ||
+ | void doSomething() const { ...; done_ = true; } | ||
+ | }; | ||
+ | | ||
+ | </ | ||
code/mutable.txt · Last modified: 2019/11/13 12:54 by michfiel