/* @copyright Louis Dionne 2014 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #include #include #include using namespace boost::hana; template void test() { constexpr auto logical = detail::minimal::logical; BOOST_HANA_STATIC_ASSERT(not_(logical(true)) == logical(false)); BOOST_HANA_STATIC_ASSERT(not_(logical(false)) == logical(true)); BOOST_HANA_STATIC_ASSERT(!logical(true) == not_(logical(true))); BOOST_HANA_STATIC_ASSERT(!logical(false) == not_(logical(false))); } int main() { test(); }