]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/impl/assert_string_length.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / impl / assert_string_length.hpp
1 #ifndef BOOST_METAPARSE_V1_IMPL_ASSERT_STRING_LENGTH_HPP
2 #define BOOST_METAPARSE_V1_IMPL_ASSERT_STRING_LENGTH_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #include <boost/static_assert.hpp>
10
11 namespace boost
12 {
13 namespace metaparse
14 {
15 namespace v1
16 {
17 namespace impl
18 {
19 template <int Len, class S>
20 struct assert_string_length : S
21 {
22 BOOST_STATIC_ASSERT((Len <= BOOST_METAPARSE_LIMIT_STRING_SIZE));
23 };
24 }
25 }
26 }
27 }
28
29 #endif
30
31