|
||||
File indexing completed on 2025-01-18 09:50:27
0001 /////////////////////////////////////////////////////////////////////////////// 0002 /// \file static_const.hpp 0003 /// Contains definition of static_const for declaring static constants that 0004 // 0005 // Copyright 2008 Eric Niebler. Distributed under the Boost 0006 // Software License, Version 1.0. (See accompanying file 0007 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 0008 0009 #ifndef BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012 0010 #define BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012 0011 0012 namespace boost { namespace proto 0013 { 0014 namespace detail 0015 { 0016 template<typename T> 0017 struct static_const 0018 { 0019 static T const value; 0020 }; 0021 0022 template<typename T> 0023 T const static_const<T>::value = {}; 0024 } 0025 }} 0026 0027 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |