1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00

Improve c++20 compatibility (#195)

This commit is contained in:
icedrocket 2024-01-14 06:58:05 +09:00 committed by GitHub
parent 2f9dd2e61a
commit 731e38ba24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ template <class T> class NTreeNode
{
public:
// constructor
NTreeNode<T>( T data );
NTreeNode( T data );
NTreeNode<T> *PrependChild( NTreeNode<T> *node );
NTreeNode<T> *AppendChild( NTreeNode<T> *node );

View File

@ -870,8 +870,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;