]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/utility/test/string_view_from_rvalue.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / utility / test / string_view_from_rvalue.cpp
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
20 #include "boost/test/minimal.hpp"
21
22 std::string makeatemp() { return "abc"; }
23
24 int test_main(int, char **)
25 {
26 boost::basic_string_view<char> sv(makeatemp());
27 return 0;
28 }