enable_if.hpp 550 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BOOST_SYSTEM_DETAIL_ENABLE_IF_HPP_INCLUDED
  2. #define BOOST_SYSTEM_DETAIL_ENABLE_IF_HPP_INCLUDED
  3. // Copyright 2020 Peter Dimov
  4. // Distributed under the Boost Software License, Version 1.0
  5. // http://www.boost.org/LICENSE_1_0.txt
  6. namespace boost
  7. {
  8. namespace system
  9. {
  10. namespace detail
  11. {
  12. template<bool C, class T = void> struct enable_if
  13. {
  14. typedef T type;
  15. };
  16. template<class T> struct enable_if<false, T>
  17. {
  18. };
  19. } // namespace detail
  20. } // namespace system
  21. } // namespace boost
  22. #endif // #ifndef BOOST_SYSTEM_DETAIL_ENABLE_IF_HPP_INCLUDED