]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/beast/test/beast/http/vector_body.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / beast / test / beast / http / vector_body.cpp
index cda69795db77e1facd7e75206ac4ed0e9301926a..142d17e186282fff5583b82ae91e00c473526b20 100644 (file)
@@ -1,5 +1,5 @@
 //
-// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
+// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
 //
 // 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)
@@ -9,6 +9,7 @@
 
 // Test that header file is self-contained.
 #include <boost/beast/http/vector_body.hpp>
+#include <cstddef>
 
 namespace boost {
 namespace beast {
@@ -18,6 +19,12 @@ BOOST_STATIC_ASSERT(is_body<vector_body<char>>::value);
 BOOST_STATIC_ASSERT(is_body_writer<vector_body<char>>::value);
 BOOST_STATIC_ASSERT(is_body_reader<vector_body<char>>::value);
 
+#if __cpp_lib_byte >= 201603
+BOOST_STATIC_ASSERT(is_body<vector_body<std::byte>>::value);
+BOOST_STATIC_ASSERT(is_body_writer<vector_body<std::byte>>::value);
+BOOST_STATIC_ASSERT(is_body_reader<vector_body<std::byte>>::value);
+#endif
+
 } // http
 } // beast
 } // boost