Skip to content

Commit

Permalink
Avoid -Wsign-compare under GCC 4.4 in lambda_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Feb 12, 2023
1 parent c44392f commit e9f1036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lambda_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ int main()
using namespace boost::lambda;

function <unsigned(bool, double)> f1 = bind(func_impl, 15, _1, _2);
BOOST_TEST_EQ( f1(true, 2.0), 30 );
BOOST_TEST_EQ( f1(true, 2.0), 30u );

function <unsigned(double)> f2 = boost::lambda::bind(f1, false, _1);
BOOST_TEST_EQ( f2(2.0), 60 );
BOOST_TEST_EQ( f2(2.0), 60u );

function <unsigned()> f3 = boost::lambda::bind(f2, 4.0);
BOOST_TEST_EQ( f3(), 120 );
BOOST_TEST_EQ( f3(), 120u );

return boost::report_errors();
}

0 comments on commit e9f1036

Please sign in to comment.