| 
									
										
										
										
											2018-09-17 21:50:47 +03:00
										 |  |  | // Copyright 2018 Peter Dimov
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Distributed under the Boost Software License, Version 1.0.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // See accompanying file LICENSE_1_0.txt or copy at
 | 
					
						
							|  |  |  | // http://www.boost.org/LICENSE_1_0.txt
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <boost/shared_ptr.hpp>
 | 
					
						
							| 
									
										
										
										
											2018-09-17 22:04:27 +03:00
										 |  |  | #include <boost/make_shared.hpp>
 | 
					
						
							| 
									
										
										
										
											2018-09-17 21:50:47 +03:00
										 |  |  | #include <boost/config.hpp>
 | 
					
						
							| 
									
										
										
										
											2018-09-17 22:04:27 +03:00
										 |  |  | #include <memory>
 | 
					
						
							| 
									
										
										
										
											2018-09-17 21:50:47 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | #if defined(DLL_TEST_DYN_LINK)
 | 
					
						
							|  |  |  | # define EXPORT BOOST_SYMBOL_EXPORT
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | # define EXPORT
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-17 22:04:27 +03:00
										 |  |  | EXPORT boost::shared_ptr<int> dll_test_41() | 
					
						
							| 
									
										
										
										
											2018-09-17 21:50:47 +03:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2018-09-17 22:04:27 +03:00
										 |  |  |     return boost::shared_ptr<int>( new int( 41 ) ); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EXPORT boost::shared_ptr<int> dll_test_42() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return boost::make_shared<int>( 42 ); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EXPORT boost::shared_ptr<int> dll_test_43() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return boost::allocate_shared<int>( std::allocator<int>(), 43 ); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EXPORT boost::shared_ptr<int[]> dll_test_44() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return boost::make_shared<int[1]>( 44 ); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EXPORT boost::shared_ptr<int[]> dll_test_45() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return boost::allocate_shared<int[1]>( std::allocator<int>(), 45 ); | 
					
						
							| 
									
										
										
										
											2018-09-17 21:50:47 +03:00
										 |  |  | } |