wrong.hpp 861 B

123456789101112131415161718192021222324252627282930313233
  1. /*!
  2. @file
  3. Defines `boost::hana::detail::wrong`.
  4. @copyright Louis Dionne 2013-2017
  5. Distributed under the Boost Software License, Version 1.0.
  6. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_HANA_DETAIL_WRONG_HPP
  9. #define BOOST_HANA_DETAIL_WRONG_HPP
  10. #include <boost/hana/config.hpp>
  11. #include <type_traits>
  12. BOOST_HANA_NAMESPACE_BEGIN namespace detail {
  13. //! @ingroup group-detail
  14. //! Equivalent to a type-dependent `std::false_type`.
  15. //!
  16. //! This is useful for making a static assertion that would otherwise
  17. //! always fire up dependent on some template parameters.
  18. //!
  19. //!
  20. //! Example
  21. //! -------
  22. //! @include example/detail/wrong.cpp
  23. template <typename ...>
  24. struct wrong : std::false_type { };
  25. } BOOST_HANA_NAMESPACE_END
  26. #endif // !BOOST_HANA_DETAIL_WRONG_HPP