• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2    Copyright (c) Marshall Clow 2017.
3 
4    Distributed under the Boost Software License, Version 1.0. (See accompanying
5    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 
7     For more information, see http://www.boost.org
8 */
9 
10 #include <iostream>
11 #include <algorithm>
12 #include <string>
13 
14 #include <boost/utility/string_view.hpp>
15 
16 #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
17 #error "Unsupported test"
18 #endif
19 
makeatemp()20 std::string makeatemp() { return "abc"; }
21 
main()22 int main()
23 {
24   boost::basic_string_view<char> sv(makeatemp());
25   return 0;
26 }
27