mirror of
				https://github.com/boostorg/utility.git
				synced 2025-11-04 02:11:45 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			595 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			595 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
   Copyright (c) Marshall Clow 2017.
 | 
						|
 | 
						|
   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)
 | 
						|
 | 
						|
    For more information, see http://www.boost.org
 | 
						|
*/
 | 
						|
 | 
						|
#include <iostream>
 | 
						|
#include <algorithm>
 | 
						|
#include <string>
 | 
						|
 | 
						|
#include <boost/utility/string_ref.hpp>
 | 
						|
 | 
						|
#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
 | 
						|
#error "Unsupported test"
 | 
						|
#endif
 | 
						|
 | 
						|
std::string makeatemp() { return "abc"; }
 | 
						|
 | 
						|
int main()
 | 
						|
{
 | 
						|
  boost::basic_string_ref<char> sv(makeatemp());
 | 
						|
  return 0;
 | 
						|
}
 |