mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
Do not use the macro shortcut for not
It is not required by the standard
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user