Skip to content

Commit

Permalink
Use std::enable_if in detail/enable_if.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 17, 2024
1 parent b0304ad commit 1474498
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions include/boost/system/detail/enable_if.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +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<bool C, class T = void> struct enable_if
{
typedef T type;
};

template<class T> struct enable_if<false, T>
{
};
using std::enable_if;

} // namespace detail

} // namespace system

} // namespace boost

#endif // #ifndef BOOST_SYSTEM_DETAIL_ENABLE_IF_HPP_INCLUDED

0 comments on commit 1474498

Please sign in to comment.