Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/proto/detail/static_const.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 /// \file static_const.hpp |
Chris@16 | 3 /// Contains definition of static_const for declaring static constants that |
Chris@16 | 4 // |
Chris@16 | 5 // Copyright 2008 Eric Niebler. Distributed under the Boost |
Chris@16 | 6 // Software License, Version 1.0. (See accompanying file |
Chris@16 | 7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012 |
Chris@16 | 10 #define BOOST_PROTO_DETAIL_STATIC_CONST_HPP_EAN_20_07_2012 |
Chris@16 | 11 |
Chris@16 | 12 namespace boost { namespace proto |
Chris@16 | 13 { |
Chris@16 | 14 namespace detail |
Chris@16 | 15 { |
Chris@16 | 16 template<typename T> |
Chris@16 | 17 struct static_const |
Chris@16 | 18 { |
Chris@16 | 19 static T const value; |
Chris@16 | 20 }; |
Chris@16 | 21 |
Chris@16 | 22 template<typename T> |
Chris@16 | 23 T const static_const<T>::value = {}; |
Chris@16 | 24 } |
Chris@16 | 25 }} |
Chris@16 | 26 |
Chris@16 | 27 #endif |