Do not use the macro shortcut for not

It is not required by the standard
This commit is contained in:
Guillaume Fraux
2017-05-15 11:30:35 +02:00
parent 552de18501
commit 612119fa1e
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ BOOST_AUTO_TEST_CASE(test_resize)
typedef std::vector<int> resizable_type;
typedef std::array<int,1> non_resizable_type;
BOOST_CHECK(toml::detail::has_resize_method<resizable_type>::value);
BOOST_CHECK(not toml::detail::has_resize_method<non_resizable_type>::value);
BOOST_CHECK(!toml::detail::has_resize_method<non_resizable_type>::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);
}

View File

@@ -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<condT...>::invoke(tmp, rollback);
}
};