Files
boost_beast/test/beast/http/vector_body.cpp
Damian Jarek 45aaf22acd Relax requirements for vector_body:
fix: #1567

std::byte is not an arithmetic type, which caused compilation to fail
when it was used in vector_body.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-20 10:19:31 -07:00

31 lines
911 B
C++

//
// 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)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header file is self-contained.
#include <boost/beast/http/vector_body.hpp>
#include <cstddef>
namespace boost {
namespace beast {
namespace http {
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