1 // Boost shared_ptr_example2_test main program ------------------------------// 2 3 // Copyright Beman Dawes 2001. Distributed under the Boost 4 // Software License, Version 1.0. (See accompanying file 5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7 8 // See http://www.boost.org/libs/smart_ptr for documentation. 9 10 #include "shared_ptr_example2.hpp" 11 main()12int main() 13 { 14 example a; 15 a.do_something(); 16 example b(a); 17 b.do_something(); 18 example c; 19 c = a; 20 c.do_something(); 21 return 0; 22 } 23