mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-22 17:47:38 +08:00
Fix "declaration of swap must be available"
Fixes ```../hl2sdk-sdk2013/public/tier1/utlblockmemory.h:141:2: error: there are no arguments to ‘swap’ that depend on a template parameter, so a declaration of ‘swap’ must be available [-fpermissive] 141 | swap( m_nBlocks, mem.m_nBlocks ); | ^~~~```
This commit is contained in:
parent
f0aedc6359
commit
c500a84be5
@ -137,10 +137,10 @@ CUtlBlockMemory<T,I>::~CUtlBlockMemory()
|
|||||||
template< class T, class I >
|
template< class T, class I >
|
||||||
void CUtlBlockMemory<T,I>::Swap( CUtlBlockMemory< T, I > &mem )
|
void CUtlBlockMemory<T,I>::Swap( CUtlBlockMemory< T, I > &mem )
|
||||||
{
|
{
|
||||||
swap( m_pMemory, mem.m_pMemory );
|
V_swap( m_pMemory, mem.m_pMemory );
|
||||||
swap( m_nBlocks, mem.m_nBlocks );
|
V_swap( m_nBlocks, mem.m_nBlocks );
|
||||||
swap( m_nIndexMask, mem.m_nIndexMask );
|
V_swap( m_nIndexMask, mem.m_nIndexMask );
|
||||||
swap( m_nIndexShift, mem.m_nIndexShift );
|
V_swap( m_nIndexShift, mem.m_nIndexShift );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user