diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-09-24 23:52:21 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-09-24 23:52:21 +0000 |
commit | a8fd1e4be00a1abe722c21e461da115ff0eec24a (patch) | |
tree | 7e5e5fb1ab860cb374d0eb81e00f4c89d16eb666 /libcxx/test/std/strings/basic.string/string.ops | |
parent | 54f0981ebda1341b9b2e0ce1ccd830eebc320387 (diff) | |
download | bcm5719-llvm-a8fd1e4be00a1abe722c21e461da115ff0eec24a.tar.gz bcm5719-llvm-a8fd1e4be00a1abe722c21e461da115ff0eec24a.zip |
Fix a few static_asserts that need extra parens on -03
llvm-svn: 282343
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.ops')
-rw-r--r-- | libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_T_size_size.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_T_size_size.pass.cpp b/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_T_size_size.pass.cpp index 2c514a7aa62..2cdc348b6d3 100644 --- a/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_T_size_size.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_T_size_size.pass.cpp @@ -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)); |