[libcxx] r245410 - Fix use of static_assert macro with nested commas
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 18 20:38:41 PDT 2015
Author: ericwf
Date: Tue Aug 18 22:38:41 2015
New Revision: 245410
URL: http://llvm.org/viewvc/llvm-project?rev=245410&view=rev
Log:
Fix use of static_assert macro with nested commas
Modified:
libcxx/trunk/include/thread
Modified: libcxx/trunk/include/thread
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/thread?rev=245410&r1=245409&r2=245410&view=diff
==============================================================================
--- libcxx/trunk/include/thread (original)
+++ libcxx/trunk/include/thread Tue Aug 18 22:38:41 2015
@@ -141,7 +141,7 @@ class __thread_specific_ptr
// Only __thread_local_data() may construct a __thread_specific_ptr
// and only with _Tp == __thread_struct.
- static_assert(is_same<_Tp, __thread_struct>::value, "");
+ static_assert((is_same<_Tp, __thread_struct>::value), "");
__thread_specific_ptr();
friend _LIBCPP_FUNC_VIS __thread_specific_ptr<__thread_struct>& __thread_local_data();
More information about the cfe-commits
mailing list