mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fix C++98 compatibility
This commit is contained in:
parent
2cde572532
commit
f402c6161e
13 changed files with 146 additions and 37 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <turtle/constraints.hpp>
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
|
||||
BOOST_AUTO_TEST_CASE( all_comparison_constraints_can_be_instanciated )
|
||||
{
|
||||
|
|
@ -47,7 +48,7 @@ BOOST_AUTO_TEST_CASE( equal_constraint )
|
|||
BOOST_CHECK( ! mock::equal( std::string( "string" ) ).c_( "not string" ) );
|
||||
{
|
||||
std::string s;
|
||||
auto c = mock::equal( boost::cref( s ) );
|
||||
BOOST_AUTO( c, mock::equal( boost::cref( s ) ) );
|
||||
s = "string";
|
||||
BOOST_CHECK( c.c_( "string" ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue