Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <memory>
- class foo
- {
- class impl;
- std::unique_ptr<impl> impl_;
- public:
- ~foo(); // Implement (with an empty body) where impl is complete
- // foo(); // <-- adding this to the example will cause compile to pass again
- };
- int main() {
- foo bar;
- return 0;
- }
Add Comment
Please, Sign In to add comment