2001-05-24 18:43:24 +00:00
|
|
|
// Boost shared_ptr_example2_test main program ------------------------------//
|
|
|
|
|
2003-02-04 13:35:06 +00:00
|
|
|
// (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.
|
|
|
|
|
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
|
|
|
}
|