Fix MSVC warnings in tests

MSVC complains about narrowing conversions and unreferences parameters.
This makes all tests almost level 4 warning clean on MSVC 14.
This commit is contained in:
Marcel Raad
2016-07-19 10:23:33 +02:00
committed by Marcel Raad
parent 7d8a063d35
commit e4d4a685da
7 changed files with 25 additions and 25 deletions

View File

@ -112,7 +112,7 @@ void test_sequence1 () {
std::vector<int> v, v1;
v.clear ();
for ( std::size_t i = 5; i < 15; ++i )
for ( int i = 5; i < 15; ++i )
v.push_back ( i );
v1 = v;
BOOST_CHECK ( ba::is_permutation ( v.begin (), v.end (), v.begin ())); // better be a permutation of itself!