prog.cpp: In instantiation of ‘std::string SToString<Heir>::toString() [with Heir = Foo; std::string = std::basic_string<char>]’:
prog.cpp:22:13: required from here
prog.cpp:8:55: error: ‘class Foo’ has no member named ‘toStringImpl’
return static_cast<Heir*>(this)->toStringImpl();
^
prog.cpp: In member function ‘std::string SToString<Heir>::toString() [with Heir = Foo; std::string = std::basic_string<char>]’:
prog.cpp:9:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^