Created
October 8, 2009 22:42
-
-
Save vinzenz/205491 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pimpl.h" | |
struct test::inner{ int x; inner() : x(42) {} }; | |
test::test():pimpl(new inner()){} | |
test::~test(){} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/shared_ptr.hpp> | |
struct test{ | |
test(); | |
~test(); | |
struct inner; | |
boost::shared_ptr<inner> pimpl; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pimpl.h" | |
int main(){ | |
test t; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment