namespace std { class StringBase { }; typedef StringBase string; void foo() { class ClumpletDump { public: string hexString() { } virtual void getBuffer(); }; ClumpletDump cd; cd.hexString(); } }