Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <boost/shared_ptr.hpp>
- #include <boost/enable_shared_from_this.hpp>
- struct test : public boost::enable_shared_from_this<test>
- {
- ~test()
- {
- // exception thrown here
- shared_from_this();
- }
- };
- int main()
- {
- boost::shared_ptr<test> t(new test());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement