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
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
namespace system
|
||||
{
|
||||
|
||||
namespace detail
|
||||
{
|
||||
|
||||
template<class T1, class T2> struct is_same
|
||||
{
|
||||
enum _vt { value = 0 };
|
||||
};
|
||||
|
||||
template<class T> struct is_same<T, T>
|
||||
{
|
||||
enum _vt { value = 1 };
|
||||
};
|
||||
using std::is_same;
|
||||
|
||||
} // namespace detail
|
||||
|
||||
} // namespace system
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // #ifndef BOOST_SYSTEM_DETAIL_IS_SAME_HPP_INCLUDED
|
||||
|
Reference in New Issue
Block a user