1 /* 2 Copyright 2018 Glen Joseph Fernandes 3 (glenjofe@gmail.com) 4 5 Distributed under the Boost Software License, Version 1.0. 6 (http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 #ifndef BOOST_TYPEOF_CONSTANT_HPP 9 #define BOOST_TYPEOF_CONSTANT_HPP 10 11 #include <boost/config.hpp> 12 13 namespace boost { 14 namespace type_of { 15 16 template<class T, T N> 17 struct constant { 18 typedef constant<T, N> type; 19 typedef constant<T, N + 1> next; 20 BOOST_STATIC_CONSTANT(T, value=N); 21 }; 22 23 } /* type_of */ 24 } /* boost */ 25 26 #endif 27