// (C) Copyright Jonathan Turkanis 2004. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt. // Disclaimer: Not a Boost library. #include #include #include #include #include "./detail/hierarchies.hpp" #include "./detail/template_hierarchies.hpp" int main() { using namespace boost::interfaces; using namespace boost::interfaces::test; BOOST_STATIC_ASSERT((implements, ifirst>::value)); BOOST_STATIC_ASSERT((implements, ifirst>::value)); BOOST_STATIC_ASSERT((implements, iderived1>::value)); BOOST_STATIC_ASSERT((implements, ifirst>::value)); BOOST_STATIC_ASSERT((implements, iderived1>::value)); BOOST_STATIC_ASSERT((implements, iderived4>::value)); BOOST_STATIC_ASSERT((!implements, isecond>::value)); BOOST_STATIC_ASSERT((!implements, iderived3>::value)); BOOST_STATIC_ASSERT((!implements::value)); BOOST_STATIC_ASSERT((!implements::value)); BOOST_STATIC_ASSERT((!implements::value)); }