]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/impl/empty_string.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / impl / empty_string.hpp
1 #ifndef BOOST_METAPARSE_V1_IMPL_EMPTY_STRING_HPP
2 #define BOOST_METAPARSE_V1_IMPL_EMPTY_STRING_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
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/metaparse/config.hpp>
10
11 namespace boost
12 {
13 namespace metaparse
14 {
15 namespace v1
16 {
17 namespace impl
18 {
19 template <class Ignore = int>
20 struct empty_string
21 {
22 typedef empty_string type;
23
24 #ifdef BOOST_NO_CONSTEXPR_C_STR
25 static const char value[1];
26 #else
27 static constexpr char value[1] = {0};
28 #endif
29 };
30
31 #ifdef BOOST_NO_CONSTEXPR_C_STR
32 template <class Ignore>
33 const char empty_string<Ignore>::value[1] = {0};
34 #else
35 template <class Ignore>
36 constexpr char empty_string<Ignore>::value[1];
37 #endif
38 }
39 }
40 }
41 }
42
43 #endif
44