/* @copyright Louis Dionne 2015 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 namespace hana = boost::hana; struct Concept { }; struct _method { }; constexpr _method method{}; template <> struct boost::hana::operators::of : decltype(method) { }; struct Nested { struct hana { struct operators : boost::hana::operators::of { }; }; }; static_assert(boost::hana::has_operator{}, ""); int main() { }