| 1 | #ifndef BOOST_CORE_IS_SAME_HPP_INCLUDED |
| 2 | #define BOOST_CORE_IS_SAME_HPP_INCLUDED |
| 3 | |
| 4 | // MS compatible compilers support #pragma once |
| 5 | |
| 6 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
| 7 | # pragma once |
| 8 | #endif |
| 9 | |
| 10 | // is_same<T1,T2>::value is true when T1 == T2 |
| 11 | // |
| 12 | // Copyright 2014 Peter Dimov |
| 13 | // |
| 14 | // Distributed under the Boost Software License, Version 1.0. |
| 15 | // See accompanying file LICENSE_1_0.txt or copy at |
| 16 | // http://www.boost.org/LICENSE_1_0.txt |
| 17 | |
| 18 | #include <boost/config.hpp> |
| 19 | |
| 20 | namespace boost |
| 21 | { |
| 22 | |
| 23 | namespace core |
| 24 | { |
| 25 | |
| 26 | template< class T1, class T2 > struct is_same |
| 27 | { |
| 28 | BOOST_STATIC_CONSTANT( bool, value = false ); |
| 29 | }; |
| 30 | |
| 31 | template< class T > struct is_same< T, T > |
| 32 | { |
| 33 | BOOST_STATIC_CONSTANT( bool, value = true ); |
| 34 | }; |
| 35 | |
| 36 | } // namespace core |
| 37 | |
| 38 | } // namespace boost |
| 39 | |
| 40 | #endif // #ifndef BOOST_CORE_IS_SAME_HPP_INCLUDED |
| 41 | |