Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/proto/detail/static_const.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
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 |