>816 無理矢理、やってやれないこともない class A { protected: enum {ANUM = 10}; }; class AA : public A { public: static void sf(A *a){cout << static_cast<AA *>(a)->ANUM << endl;} }; void main() { A a; AA::sf(&a); }
>>893 "Inlines are the third most-misused C++ feature (after inheritance and overloading), used far more often than any practical criterion could justify, just because it is more covenient to write them in place. Anything that encourages their use beyond strict engineering merit is detrimental."