This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

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

By: a guest on Sep 30th, 2012  |  syntax: C++  |  size: 0.29 KB  |  views: 87  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data