Skip to content

Commit

Permalink
update to use recursive_wrapper<T> -> T conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Jun 25, 2014
1 parent 724a40b commit 7e60981
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/recursive_wrapper_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ int main (int argc, char** argv)

const std::size_t NUM_ITER = static_cast<std::size_t>(std::stol(argv[1]));

test::expression result(util::recursive_wrapper<test::binary_op<test::sub> >(
test::binary_op<test::sub>(
util::recursive_wrapper<test::binary_op<test::add> >(
test::binary_op<test::add>(2,3)),4)));
test::expression result(
test::binary_op<test::sub>(
test::binary_op<test::add>(2,3),4));

std::cerr << "TYPE OF RESULT-> " << util::apply_visitor(test::test(), result) << std::endl;

Expand Down

0 comments on commit 7e60981

Please sign in to comment.