2008-01-22 pImplイディオム プログラムメモ コンパイル依存性を切るために多用しているんだけど、 pImplイディオムを使っていて微妙に気持ち悪いのが int fGetValue() const{ return pImpl->mValue; } とかconstなメンバ関数が全然constじゃない事。 int fGetValue() const { pImpl->mValue = 100; return pImpl->mValue; } とかやろうと思えばできてしまうし。 いっその事メンバ関数にconstつけるのやめてしまおうか。