Chris@16: // Copyright Douglas Gregor 2004. Chris@16: // Copyright 2005 Peter Dimov Chris@16: Chris@16: // Use, modification and distribution is subject to Chris@16: // the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // For more information, see http://www.boost.org Chris@16: #ifndef BOOST_FUNCTION_EQUAL_HPP Chris@16: #define BOOST_FUNCTION_EQUAL_HPP Chris@16: Chris@16: namespace boost { Chris@16: Chris@16: template Chris@16: bool function_equal_impl(const F& f, const G& g, long) Chris@16: { return f == g; } Chris@16: Chris@16: // function_equal_impl needs to be unqualified to pick Chris@16: // user overloads on two-phase compilers Chris@16: Chris@16: template Chris@16: bool function_equal(const F& f, const G& g) Chris@16: { return function_equal_impl(f, g, 0); } Chris@16: Chris@16: } // end namespace boost Chris@16: Chris@16: #endif // BOOST_FUNCTION_EQUAL_HPP