Fixed test to work with an explicit operator bool

This commit is contained in:
K-ballo
2014-01-26 19:06:16 -06:00
parent 4b139914b1
commit 44d5dca98b

View File

@ -118,7 +118,7 @@ main()
useThisIStringStream is("(100 200 300)");
vector<int, int, int> ti;
BOOST_TEST((is >> ti) != 0);
BOOST_TEST(!!(is >> ti));
BOOST_TEST(ti == make_vector(100, 200, 300));
// Note that strings are problematic: