mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
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:
@@ -30,7 +30,7 @@ test(S s, typename S::size_type pos1, typename S::size_type n1,
|
||||
SV sv, typename S::size_type pos2, typename S::size_type n2,
|
||||
S expected)
|
||||
{
|
||||
static_assert(!std::is_same<S, SV>::value, "");
|
||||
static_assert((!std::is_same<S, SV>::value), "");
|
||||
typename S::size_type old_size = s.size();
|
||||
S s0 = s;
|
||||
try
|
||||
@@ -56,7 +56,7 @@ test_npos(S s, typename S::size_type pos1, typename S::size_type n1,
|
||||
SV sv, typename S::size_type pos2,
|
||||
S expected)
|
||||
{
|
||||
static_assert(!std::is_same<S, SV>::value, "");
|
||||
static_assert((!std::is_same<S, SV>::value), "");
|
||||
typename S::size_type old_size = s.size();
|
||||
S s0 = s;
|
||||
try
|
||||
|
Reference in New Issue
Block a user