forked from boostorg/system
Use std::is_same in detail/is_same.hpp
This commit is contained in:
@ -5,29 +5,19 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0
|
// Distributed under the Boost Software License, Version 1.0
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
// http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#include <type_traits>
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace system
|
namespace system
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
template<class T1, class T2> struct is_same
|
using std::is_same;
|
||||||
{
|
|
||||||
enum _vt { value = 0 };
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T> struct is_same<T, T>
|
|
||||||
{
|
|
||||||
enum _vt { value = 1 };
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
} // namespace system
|
} // namespace system
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // #ifndef BOOST_SYSTEM_DETAIL_IS_SAME_HPP_INCLUDED
|
#endif // #ifndef BOOST_SYSTEM_DETAIL_IS_SAME_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user