Files
boost_smart_ptr/example/shared_ptr_example2_test.cpp

21 lines
415 B
C++
Raw Normal View History

2001-05-24 18:43:24 +00:00
// Boost shared_ptr_example2_test main program ------------------------------//
// Copyright Beman Dawes 2001.
// See accompanying license for terms and conditions of use.
2003-02-04 13:35:06 +00:00
// See http://www.boost.org/libs/smart_ptr for documentation.
2003-02-04 13:35:06 +00:00
2001-05-24 18:43:24 +00:00
#include "shared_ptr_example2.hpp"
int main()
{
example a;
a.do_something();
example b(a);
b.do_something();
example c;
c = a;
c.do_something();
return 0;
2002-01-19 15:54:28 +00:00
}