/*============================================================================= Copyright (c) 1998-2003 Joel de Guzman Copyright (c) 2001 Daniel Nuffer Copyright (c) 2002 Hartmut Kaiser http://spirit.sourceforge.net/ Use, modification and distribution is subject to 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) =============================================================================*/ #if !defined(BOOST_SPIRIT_EXCLUSIVE_OR_IPP) #define BOOST_SPIRIT_EXCLUSIVE_OR_IPP namespace boost { namespace spirit { BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN /////////////////////////////////////////////////////////////////////////// // // exclusive_or class implementation // /////////////////////////////////////////////////////////////////////////// template inline exclusive_or operator^(parser const& a, parser const& b) { return exclusive_or(a.derived(), b.derived()); } template inline exclusive_or > operator^(parser const& a, char b) { return exclusive_or >(a.derived(), b); } template inline exclusive_or, B> operator^(char a, parser const& b) { return exclusive_or, B>(a, b.derived()); } template inline exclusive_or > operator^(parser const& a, char const* b) { return exclusive_or >(a.derived(), b); } template inline exclusive_or, B> operator^(char const* a, parser const& b) { return exclusive_or, B>(a, b.derived()); } template inline exclusive_or > operator^(parser const& a, wchar_t b) { return exclusive_or >(a.derived(), b); } template inline exclusive_or, B> operator^(wchar_t a, parser const& b) { return exclusive_or, B>(a, b.derived()); } template inline exclusive_or > operator^(parser const& a, wchar_t const* b) { return exclusive_or >(a.derived(), b); } template inline exclusive_or, B> operator^(wchar_t const* a, parser const& b) { return exclusive_or, B>(a, b.derived()); } BOOST_SPIRIT_CLASSIC_NAMESPACE_END }} // namespace boost::spirit #endif