2010-12-22 mutable C++ 別に自身の直接のメンバじゃなくてもよかったんですね。 struct A { mutable int i; }; struct B { void f() const { a.i = 0; } A a; }; 知らなかったというか、考えたことがなかった。あと const と同じで別に推移的ではない。