Skip to content

Commit

Permalink
recursive variant test using std::unique_ptr move semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed May 16, 2014
1 parent 6e9a10f commit 5ebf867
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Jamroot
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,15 @@ exe recursive-wrapper-test
<define>VARIANT_LOGICAL_TESTS
<variant>release:<cxxflags>-march=native
;

exe unique-ptr-test
:
unique_ptr_test.cpp
.//system
.//timer
.//chrono
:
<include>$(BOOST_DIR)/include
<define>VARIANT_LOGICAL_TESTS
<variant>release:<cxxflags>-march=native
;
2 changes: 1 addition & 1 deletion recursive_wrapper_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct binary_op
expression left; // variant instantiated here...
expression right;

binary_op( const expression & lhs, const expression & rhs )
binary_op( expression const& lhs, expression const& rhs )
: left(lhs), right(rhs)
{
}
Expand Down

0 comments on commit 5ebf867

Please sign in to comment.