mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05:00 
			
		
		
		
	
		
			
	
	
		
			32 lines
		
	
	
		
			905 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			905 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								//  (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.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								//  MACRO:         BOOST_NO_CXX11_CHAR32_T
							 | 
						||
| 
								 | 
							
								//  TITLE:         C++0x char32_t unavailable
							 | 
						||
| 
								 | 
							
								//  DESCRIPTION:   The compiler does not support C++0x char32_t
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace boost_no_cxx11_char32_t {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								//  Microsoft VC++ 2010, and possibly other compilers, provides
							 | 
						||
| 
								 | 
							
								//  a typedef for char32_t rather than a new type. We want that
							 | 
						||
| 
								 | 
							
								//  to be an error, so provide an overloaded function that will
							 | 
						||
| 
								 | 
							
								//  be ambiguous if char16_t is just a typedef.
							 | 
						||
| 
								 | 
							
								void f(const char32_t*){}
							 | 
						||
| 
								 | 
							
								void f(const unsigned short*){}
							 | 
						||
| 
								 | 
							
								void f(const unsigned int*){}
							 | 
						||
| 
								 | 
							
								void f(const unsigned long*){}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								int test()
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  const char32_t p(0);
							 | 
						||
| 
								 | 
							
								  f(&p);
							 | 
						||
| 
								 | 
							
								  return 0;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 |