]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/proto/include/boost/proto/detail/static_const.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / proto / include / boost / proto / detail / static_const.hpp
1 ///////////////////////////////////////////////////////////////////////////////
2 /// \file static_const.hpp
3 /// Contains definition of static_const for declaring static constants that
4 //
5 // Copyright 2008 Eric Niebler. Distributed under the Boost
6 // Software License, Version 1.0. (See accompanying file
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9 #ifndef BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012
10 #define BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012
11
12 namespace boost { namespace proto
13 {
14 namespace detail
15 {
16 template<typename T>
17 struct static_const
18 {
19 static T const value;
20 };
21
22 template<typename T>
23 T const static_const<T>::value = {};
24 }
25 }}
26
27 #endif