Fix a few static_asserts that need extra parens on -03
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@282343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,7 +36,7 @@ void
|
||||
test(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
SV sv, typename S::size_type pos2, typename S::size_type n2, int x)
|
||||
{
|
||||
static_assert(!std::is_same<S, SV>::value, "");
|
||||
static_assert((!std::is_same<S, SV>::value), "");
|
||||
try
|
||||
{
|
||||
assert(sign(s.compare(pos1, n1, sv, pos2, n2)) == sign(x));
|
||||
@@ -54,7 +54,7 @@ void
|
||||
test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
SV sv, typename S::size_type pos2, int x)
|
||||
{
|
||||
static_assert(!std::is_same<S, SV>::value, "");
|
||||
static_assert((!std::is_same<S, SV>::value), "");
|
||||
try
|
||||
{
|
||||
assert(sign(s.compare(pos1, n1, sv, pos2)) == sign(x));
|
||||
|
||||
Reference in New Issue
Block a user