forked from boostorg/smart_ptr
21 lines
415 B
C++
21 lines
415 B
C++
// Boost shared_ptr_example2_test main program ------------------------------//
|
|
|
|
// Copyright Beman Dawes 2001.
|
|
// See accompanying license for terms and conditions of use.
|
|
|
|
// See http://www.boost.org/libs/smart_ptr for documentation.
|
|
|
|
#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;
|
|
}
|