class Foo { public: const int SomeFunction() { return iValue; } private: int iValue; }; int main() { Foo * foo = new Foo() ; foo->SomeFunction()->AnotherFunction(); return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:10: error: base operand of ‘->’ is not a pointer
Standard output is empty