/*============================================================================= Copyright (c) 2011-2015 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) =============================================================================*/ #ifndef SPROUT_VARIANT_VISITOR_RESULT_HPP #define SPROUT_VARIANT_VISITOR_RESULT_HPP #include #include namespace sprout { // // has_visitor_result // SPROUT_HAS_XXX_TEMPLATE_DEF_LAZY(visitor_result); namespace detail { template struct visitor_result_impl; template struct visitor_result_impl< Visitor, Visitable, typename std::enable_if::value>::type > : public Visitable::template visitor_result {}; template struct visitor_result_impl< Visitor, Visitable, typename std::enable_if::value>::type > { public: typedef typename Visitor::result_type type; }; } // namespace detail // // visitor_result // template struct visitor_result : public sprout::detail::visitor_result_impl {}; } // namespace sprout #endif // #ifndef SPROUT_VARIANT_VISITOR_RESULT_HPP