#ifndef BOOST_DESCRIBE_BASES_HPP_INCLUDED #define BOOST_DESCRIBE_BASES_HPP_INCLUDED // Copyright 2020, 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #if defined(BOOST_DESCRIBE_CXX11) #include #include namespace boost { namespace describe { namespace detail { template using _describe_bases = decltype( boost_base_descriptor_fn( static_cast(0) ) ); template struct base_filter { template using fn = mp11::mp_bool< ( M & mod_any_access & T::modifiers ) != 0 >; }; template struct has_describe_bases: std::false_type { }; template struct has_describe_bases>>: std::true_type { }; } // namespace detail template using describe_bases = mp11::mp_copy_if_q, detail::base_filter>; template using has_describe_bases = detail::has_describe_bases; } // namespace describe } // namespace boost #endif // !defined(BOOST_DESCRIBE_CXX11) #endif // #ifndef BOOST_DESCRIBE_BASES_HPP_INCLUDED