fork download
  1. #include <memory>
  2. class Foo2c
  3. {
  4. Foo2c();
  5. ~Foo2c();
  6. std::auto_ptr<struct Foo2c::Impl> m_pimpl;
  7. };
  8.  
  9. struct Foo2c::Impl
  10. {
  11. Impl(){}
  12. ~Impl(){}
  13. };
  14.  
  15. Foo2c::Foo2c(){}
  16. Foo2c::~Foo2c(){}
  17.  
  18. int main() {}
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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.
stdout
Standard output is empty