1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-04 00:23:25 +08:00

Fix compilation error on GCC12+ with C++20 (#237)

This commit is contained in:
Nukoooo 2024-05-08 19:48:53 +08:00 committed by GitHub
parent 31f997208e
commit f7ed6a0086
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
//========== Copyright © 2005, Valve Corporation, All rights reserved. ========
//========== Copyright © 2005, Valve Corporation, All rights reserved. ========
//
// Purpose: A collection of utility classes to simplify thread handling, and
// as much as possible contain portability problems. Here avoiding
@ -929,8 +929,8 @@ private:
MUTEX_TYPE &m_lock;
// Disallow copying
CAutoLockT<MUTEX_TYPE>( const CAutoLockT<MUTEX_TYPE> & );
CAutoLockT<MUTEX_TYPE> &operator=( const CAutoLockT<MUTEX_TYPE> & );
CAutoLockT( const CAutoLockT<MUTEX_TYPE> & );
CAutoLockT &operator=( const CAutoLockT<MUTEX_TYPE> & );
};
typedef CAutoLockT<CThreadMutex> CAutoLock;