// Boost scoped_ptr_example implementation file -----------------------------// // (C) Copyright Beman Dawes 2001. Permission to copy, // use, modify, sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided "as is" // without express or implied warranty, and with no claim as to its // suitability for any purpose. // See http://www.boost.org for most recent version including documentation. #include "scoped_ptr_example.hpp" #include class example::implementation { public: ~implementation() { std::cout << "destroying implementation\n"; } }; example::example() : _imp( new implementation ) {} void example::do_something() { std::cout << "did something\n"; } example::~example() {}