fork download
  1. #include <memory>
  2. class Foo2a
  3. {
  4. Foo2a();
  5. ~Foo2a();
  6. std::auto_ptr<struct Impl> m_pimpl;
  7. };
  8.  
  9. struct Foo2a::Impl
  10. {
  11. Impl(){}
  12. ~Impl(){}
  13. };
  14.  
  15. Foo2a::Foo2a(){}
  16. Foo2a::~Foo2a(){}
  17.  
  18. int main() {}
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9:15: error: no struct named 'Impl' in 'Foo2a'
struct Foo2a::Impl
       ~~~~~~~^
1 error generated.
stdout
Standard output is empty