#include <memory> class Foo2c { Foo2c(); ~Foo2c(); std::auto_ptr<struct Foo2c::Impl> m_pimpl; }; struct Foo2c::Impl { Impl(){} ~Impl(){} }; Foo2c::Foo2c(){} Foo2c::~Foo2c(){} int main() {}
Standard input is empty
prog.cpp:6:33: error: no struct named 'Impl' in 'Foo2c' std::auto_ptr<struct Foo2c::Impl> m_pimpl; ~~~~~~~^ prog.cpp:9:15: error: no struct named 'Impl' in 'Foo2c' struct Foo2c::Impl ~~~~~~~^ 2 errors generated.
Standard output is empty