]>
Commit | Line | Data |
---|---|---|
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 | ||
17 | namespace boost { | |
18 | namespace beast { | |
19 | ||
20 | struct foo_impl | |
21 | { | |
22 | void operator()() const noexcept | |
23 | { | |
24 | BEAST_PASS(); | |
25 | } | |
26 | }; | |
27 | ||
28 | constexpr auto& bar = | |
29 | boost::beast::detail::static_const<detail::close_socket_impl>::value; | |
30 | ||
31 | class static_const_test : public beast::unit_test::suite | |
32 | { | |
33 | public: | |
34 | void | |
35 | run() override | |
36 | { | |
37 | pass(); | |
38 | } | |
39 | }; | |
40 | ||
41 | BEAST_DEFINE_TESTSUITE(beast,core,static_const); | |
42 | ||
43 | } // beast | |
44 | } // boost |