]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/beast/test/beast/core/_detail_static_const.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / beast / test / beast / core / _detail_static_const.cpp
CommitLineData
92f5a8d4
TL
1//
2// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
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// Official repository: https://github.com/boostorg/beast
8//
9
10// Test that header file is self-contained.
11#include <boost/beast/core/detail/static_const.hpp>
12
13#include <boost/beast/_experimental/unit_test/suite.hpp>
14
15#include <boost/beast/core/close_socket.hpp>
16
17namespace boost {
18namespace beast {
19
20struct foo_impl
21{
22 void operator()() const noexcept
23 {
24 BEAST_PASS();
25 }
26};
27
28constexpr auto& bar =
29 boost::beast::detail::static_const<detail::close_socket_impl>::value;
30
31class static_const_test : public beast::unit_test::suite
32{
33public:
34 void
35 run() override
36 {
37 pass();
38 }
39};
40
41BEAST_DEFINE_TESTSUITE(beast,core,static_const);
42
43} // beast
44} // boost