libstdc++: Add 'typename' to dependent types in atomic<shared_ptr<T>>

libstdc++-v3/ChangeLog:

	* include/bits/shared_ptr_atomic.h (_Sp_atomic): Add typename
	to qualified-id for dependent type.
This commit is contained in:
Jonathan Wakely 2022-01-17 09:42:35 +00:00
parent b75aab194e
commit a923345c72
1 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typename _Tp::element_type* _M_ptr;
_Atomic_count _M_refcount;
static _Atomic_count::pointer
_S_add_ref(_Atomic_count::pointer __p)
static typename _Atomic_count::pointer
_S_add_ref(typename _Atomic_count::pointer __p)
{
if (__p)
{