/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman 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) ==============================================================================*/ #include #include #include #include #include #include int main() { double eps = 0.000001; using namespace boost::phoenix::arg_names; boost::function f = fabs(_1 - _2) < eps; double x = boost::phoenix::pow(_1,_2)(2.,0.); BOOST_TEST(f(0.0, 0 * eps)); BOOST_TEST(!f(0.0, eps)); BOOST_TEST(fabs(x-1.) < eps ); }