Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: /// \file static_const.hpp Chris@16: /// Contains definition of static_const for declaring static constants that Chris@16: // Chris@16: // Copyright 2008 Eric Niebler. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012 Chris@16: #define BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012 Chris@16: Chris@16: namespace boost { namespace proto Chris@16: { Chris@16: namespace detail Chris@16: { Chris@16: template Chris@16: struct static_const Chris@16: { Chris@16: static T const value; Chris@16: }; Chris@16: Chris@16: template Chris@16: T const static_const::value = {}; Chris@16: } Chris@16: }} Chris@16: Chris@16: #endif