forked from boostorg/smart_ptr
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			648 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			648 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// Boost shared_ptr_example2_test main program  ------------------------------//
 | 
						|
 | 
						|
//  (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.
 | 
						|
 | 
						|
#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;
 | 
						|
}
 |