Fix use of static_assert macro with nested commas
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@245410 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
286e0a491b
commit
f99b59c784
@ -141,7 +141,7 @@ class __thread_specific_ptr
|
|||||||
|
|
||||||
// Only __thread_local_data() may construct a __thread_specific_ptr
|
// Only __thread_local_data() may construct a __thread_specific_ptr
|
||||||
// and only with _Tp == __thread_struct.
|
// 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();
|
__thread_specific_ptr();
|
||||||
friend _LIBCPP_FUNC_VIS __thread_specific_ptr<__thread_struct>& __thread_local_data();
|
friend _LIBCPP_FUNC_VIS __thread_specific_ptr<__thread_struct>& __thread_local_data();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user