Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 09:53:01

0001 /*!
0002 @file
0003 Defines `boost::hana::detail::wrong`.
0004 
0005 Copyright Louis Dionne 2013-2022
0006 Distributed under the Boost Software License, Version 1.0.
0007 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
0008  */
0009 
0010 #ifndef BOOST_HANA_DETAIL_WRONG_HPP
0011 #define BOOST_HANA_DETAIL_WRONG_HPP
0012 
0013 #include <boost/hana/config.hpp>
0014 
0015 #include <type_traits>
0016 
0017 
0018 namespace boost { namespace hana { namespace detail {
0019     //! @ingroup group-detail
0020     //! Equivalent to a type-dependent `std::false_type`.
0021     //!
0022     //! This is useful for making a static assertion that would otherwise
0023     //! always fire up dependent on some template parameters.
0024     //!
0025     //!
0026     //! Example
0027     //! -------
0028     //! @include example/detail/wrong.cpp
0029     template <typename ...>
0030     struct wrong : std::false_type { };
0031 } }} // end namespace boost::hana
0032 
0033 #endif // !BOOST_HANA_DETAIL_WRONG_HPP