]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/utility/test/string_view_from_rvalue.cpp
2 Copyright (c) Marshall Clow 2017.
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)
7 For more information, see http://www.boost.org
14 #include <boost/utility/string_view.hpp>
16 #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
17 #error "Unsupported test"
20 #include "boost/test/minimal.hpp"
22 std::string
makeatemp() { return "abc"; }
24 int test_main(int, char **)
26 boost::basic_string_view
<char> sv(makeatemp());