Guest User

issue with answer http://stackoverflow.com/a/9954553/192737

a guest
Sep 30th, 2012
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <memory>
  2.  
  3. class foo
  4. {
  5.     class impl;
  6.     std::unique_ptr<impl> impl_;
  7.  
  8. public:
  9.     ~foo(); // Implement (with an empty body) where impl is complete
  10. //   foo();   // <-- adding this to the example will cause compile to pass again
  11. };
  12.  
  13. int main() {
  14.    foo bar;
  15.    return 0;
  16. }
Add Comment
Please, Sign In to add comment