| 
									
										
										
										
											2009-03-04 14:28:36 +00:00
										 |  |  | //  (C) Copyright Beman Dawes 2008 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //  Use, modification and distribution are subject to 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) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //  See http://www.boost.org/libs/config for more information. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-15 15:59:05 +00:00
										 |  |  | //  MACRO:         BOOST_NO_CXX11_DEFAULTED_FUNCTIONS  | 
					
						
							| 
									
										
										
										
											2009-03-04 14:28:36 +00:00
										 |  |  | //  TITLE:         C++0x defaulted functions unavailable | 
					
						
							|  |  |  | //  DESCRIPTION:   The compiler does not support C++0x defaulted functions | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-27 16:56:00 +00:00
										 |  |  | #if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X) | 
					
						
							| 
									
										
										
										
											2011-12-23 17:17:31 +00:00
										 |  |  | #  error Defaulted functions are not supported in non-C++0x mode | 
					
						
							| 
									
										
										
										
											2011-04-25 12:10:48 +00:00
										 |  |  | #endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-15 15:59:05 +00:00
										 |  |  | namespace boost_no_cxx11_defaulted_functions { | 
					
						
							| 
									
										
										
										
											2009-03-04 14:28:36 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   struct foo { | 
					
						
							|  |  |  |     foo() = default; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int test() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |