2
0
mirror of https://github.com/boostorg/hof.git synced 2026-02-11 11:52:14 +00:00

Update test to conditionally disable constexpr evaluation

This commit is contained in:
Paul
2014-10-04 15:18:41 -04:00
parent 7e2691e0a5
commit 41f04b83ca
18 changed files with 106 additions and 114 deletions

View File

@@ -20,7 +20,7 @@ struct select_x
FIT_TEST_CASE()
{
constexpr auto add = fit::_ + fit::_;
static_assert(fit::on(select_x(), fit::_ + fit::_)(foo(1), foo(2)) == 3, "Constexpr projection failed");
FIT_STATIC_TEST_CHECK(fit::on(select_x(), fit::_ + fit::_)(foo(1), foo(2)) == 3);
FIT_TEST_CHECK(fit::on(std::mem_fn(&foo::x), fit::_ + fit::_)(foo(1), foo(2)) == 3);
}