1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +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

View File

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