shared_ptr_example2_test.cpp 510 B

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