Skip to content

Commit

Permalink
Use std::is_same in detail/is_same.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 17, 2024
1 parent 1474498 commit f08e363
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions include/boost/system/detail/is_same.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f08e363

Please sign in to comment.