mirror of
				https://github.com/boostorg/smart_ptr.git
				synced 2025-10-31 15:51:38 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			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;
 | |
| }
 |