diff --git a/tests/test_utility.cpp b/tests/test_utility.cpp index a36ff38..1512e4f 100644 --- a/tests/test_utility.cpp +++ b/tests/test_utility.cpp @@ -15,7 +15,7 @@ BOOST_AUTO_TEST_CASE(test_resize) typedef std::vector resizable_type; typedef std::array non_resizable_type; BOOST_CHECK(toml::detail::has_resize_method::value); - BOOST_CHECK(not toml::detail::has_resize_method::value); + BOOST_CHECK(!toml::detail::has_resize_method::value); } { @@ -29,7 +29,7 @@ BOOST_AUTO_TEST_CASE(test_resize) { thrown = true; } - BOOST_CHECK(not thrown); + BOOST_CHECK(!thrown); BOOST_CHECK_EQUAL(v.size(), 10); } @@ -44,7 +44,7 @@ BOOST_AUTO_TEST_CASE(test_resize) { thrown = true; } - BOOST_CHECK(not thrown); + BOOST_CHECK(!thrown); BOOST_CHECK_EQUAL(a.size(), 15); } diff --git a/toml/acceptor.hpp b/toml/acceptor.hpp index 42a9816..5033e40 100644 --- a/toml/acceptor.hpp +++ b/toml/acceptor.hpp @@ -109,7 +109,7 @@ struct is_chain_of_impl static Iterator invoke(Iterator iter, Iterator rollback) { const Iterator tmp = headT::invoke(iter); - return (tmp == iter && not ignorable) ? rollback : + return (tmp == iter && !ignorable) ? rollback : is_chain_of_impl::invoke(tmp, rollback); } };