]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/test/string/udl.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / string / udl.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5#include <boost/hana/assert.hpp>
6#include <boost/hana/config.hpp>
7#include <boost/hana/string.hpp>
8
9#include <type_traits>
10namespace hana = boost::hana;
11
12
13int main() {
14 // Check the _s user-defined literal
15#ifdef BOOST_HANA_CONFIG_ENABLE_STRING_UDL
16
17 using namespace hana::literals;
18
19 constexpr auto s1 = "abcd"_s;
20 constexpr auto s2 = hana::string_c<'a', 'b', 'c', 'd'>;
21
22 static_assert(std::is_same<decltype(s1), decltype(s2)>::value, "");
23#endif
24}