sigsegv
0edbd27fb8
Backport swap() -> V_swap() rename to avoid C++11 ADL ambiguity errors
...
The swap() function provided in the MathLib header was renamed to V_swap in recent Source SDK versions (e.g. 2013) to avoid causing ambiguity problems with std::swap(). But older SDK versions (such as TF2) lack this change, as they predate it.
The ambiguity between MathLib's swap() and std::swap() causes considerable problems when using newer features of C++ (such as std::unique_ptr) which internally call swap() in an unqualified manner to implement move semantics:
/usr/include/c++/5.2.0/bits/unique_ptr.h:342:6: error: call of overloaded ‘swap(MyType*&, MyType*&)’ is ambiguous
/usr/include/c++/5.2.0/bits/move.h:176:5: note: candidate: void std::swap(_Tp&, _Tp&) [with _Tp = MyType*]
hl2sdk-tf2/public/mathlib/mathlib.h:611:18: note: candidate: void swap(T&, T&) [with T = MyType*]
This patch backports the swap() -> V_swap() rename from the 2013 SDK version to the TF2 SDK version, so that the TF2 SDK can be used in conjunction with C++11 features such as std::unique_ptr without difficulty.
More information on why swap() isn't called in a namespace-qualified manner by standard library functions:
http://en.cppreference.com/w/cpp/language/adl#Notes
2016-01-24 16:44:52 -08:00
Nicholas Hastings
83ab9fb541
Update IVEngineServer and IServerGameDLL.
2015-09-10 19:53:29 -04:00
Nicholas Hastings
2456274580
Revert "Update IUniformRandomStream."
...
This reverts commit 5474d11ed0 .
2015-09-10 18:28:29 -04:00
Nicholas Hastings
edad9782f1
Remove extra _alligned_malloc.
2015-07-13 19:07:36 -04:00
Nicholas Hastings
1c13e12266
Port KeyValues class from Source SDK 2013.
2015-07-12 15:44:04 -04:00
Nicholas Hastings
02af635a89
Fix compile error.
2015-06-11 18:37:47 -04:00
Nicholas Hastings
f05f08ba9d
Update IVEngineServer for today's game update.
2015-06-11 17:48:28 -04:00
Nicholas Hastings
9e17baf146
Update IVEngineServer.
2015-05-06 17:23:57 -04:00
Nicholas Hastings
a4c483063e
Fix new warning from cset 5474d11ed0.
2014-11-15 11:32:47 -05:00
Nicholas Hastings
c1c3f9d00e
Port offsetof "fix" from sdk2013.
2014-11-09 10:22:50 -05:00
Nicholas Hastings
41e9af392f
Sync eiface.h from 2013 SDK.
2014-10-30 18:57:31 -04:00
Nicholas Hastings
5474d11ed0
Update IUniformRandomStream.
2014-10-29 20:49:28 -04:00
Nicholas Hastings
d57bb2a660
Revert "Update ICommandLine (bug 6259)."
...
This reverts commit 026a80454f .
2014-10-01 19:05:32 -04:00
Nicholas Hastings
1fe7ee6d7f
Revert "Update IFileSystem."
...
This reverts commit 7200d05f09 .
2014-10-01 18:45:53 -04:00
Nicholas Hastings
b92230aee1
Revert "Fix the butchered previous commit."
...
This reverts commit 46c7527e36 .
2014-10-01 18:45:49 -04:00
Nicholas Hastings
026a80454f
Update ICommandLine (bug 6259).
2014-09-26 08:30:07 -04:00
Nicholas Hastings
46c7527e36
Fix the butchered previous commit.
2014-09-10 20:44:12 -04:00
Nicholas Hastings
7200d05f09
Update IFileSystem.
2014-09-10 20:39:51 -04:00
Nicholas Hastings
7ab497eb74
Add missing const to CSteamID Render return.
2014-08-21 20:03:42 -04:00
Nicholas Hastings
008df2cfd2
Update IVEngineServer.
2014-07-03 12:23:54 -04:00
Nicholas Hastings
fba60b372e
Fix GetTempntList return type and add new servertools interface version.
2014-06-11 23:33:22 -04:00
Nicholas Hastings
f3ad499a47
Update IServerTools.
2014-06-11 22:43:00 -04:00
Nicholas Hastings
714edfda3b
POSIX not _POSIX
2013-10-06 11:10:49 -04:00
Nicholas Hastings
816909b216
Only define NO_MALLOC_OVERRIDE (on posix) if not already defined.
2013-10-06 10:54:40 -04:00
Scott Ehlert
99bfb50b2b
Rebuilt tier1 and mathlib for OS X using clang.
2013-04-27 00:18:49 -05:00
Scott Ehlert
c8788cc5ac
Removed 3DNow support from mathlib.
...
MathLib_3DNowEnabled() will always return false.
2013-04-27 00:18:21 -05:00
Nicholas Hastings
49b9c9caf2
Merge with tf2beta.
2013-03-29 14:41:23 -04:00
Nicholas Hastings
5ca391edb8
Further updates to IFileSystem.
...
--HG--
branch : tf2beta
2013-03-26 08:31:23 -04:00
Nicholas Hastings
c9e10aad8a
Added IServerGCLobby vtable.
2013-03-03 00:59:53 -05:00
Nicholas Hastings
49a0c0eeca
Updated IServerGameDLL.
2013-02-25 08:27:42 -05:00
Nicholas Hastings
7f38fa2e9b
Added missing parameter to CheckCachedFileHash.
...
--HG--
branch : tf2beta
2013-02-20 08:43:02 -05:00
Nicholas Hastings
dc30ffd8b3
Updated IFileSystem.
...
--HG--
branch : tf2beta
2013-02-20 00:30:48 -05:00
raydan
e181ebc3b3
Added missing virtual dtor to CFunctor (bug 5615, r=psychonic).
2013-02-17 22:05:24 -05:00
Nicholas Hastings
2d694d064b
Updated ISpatialPartition.
2013-02-14 14:43:03 -05:00
Nicholas Hastings
3e517c314a
Updated ISoundEmitterSystemBase (bug 5452).
2013-02-14 08:20:45 -05:00
Nicholas Hastings
37242fb231
Fixed more bitvec issues for GCC 4.7 and Clang.
2012-12-23 22:05:33 -05:00
Nicholas Hastings
cc5b58ef68
Copied bitvec fixes for GCC from hl2sdk-swarm.
2012-12-23 17:21:38 -05:00
Nicholas Hastings
7956320fcb
Added missing utlstring inc to filesystem.h.
2012-12-21 17:25:37 -05:00
Nicholas Hastings
c530fd2166
Alias SPROP_NORMAL to SPROP_VARINT as it now has a use for integer props.
2012-12-18 17:48:56 -05:00
Nicholas Hastings
43bc862dc5
Updated filesystem interfaces for VFileSystem020.
2012-12-18 17:48:24 -05:00
Tony Paloma
c62127dca8
Updated jobthread.h.
2012-11-12 21:10:32 -05:00
Nicholas Hastings
edbfc289da
Fixed IServerTools.
2012-10-28 20:52:03 -04:00
Nicholas Hastings
d03e28abd3
Updated IServerTools.
2012-10-28 20:45:01 -04:00
Nicholas Hastings
33fbbaccab
Changed posix impl of _aligned_malloc to match MemAlloc_Aligned behavior (other than tracking).
2012-10-28 12:05:52 -04:00
Nicholas Hastings
d540f4f0b1
Force NO_MALLOC_OVERRIDE on for mac (bug 5521).
2012-10-27 18:02:25 -04:00
Nicholas Hastings
7d37bfc976
Better fix for posix _aligned_malloc in utlmemory, fixing mac support.
2012-10-27 17:41:19 -04:00
Nicholas Hastings
38003f0586
Fix SDK issues with NO_MALLOC_OVERRIDE (bug 5521).
2012-10-26 14:45:40 -04:00
Nicholas Hastings
3a36e4b850
Force NO_MALLOC_OVERRIDE on for linux due to recent tier0 changes. (bug 5521).
2012-10-26 14:44:39 -04:00
Nicholas Hastings
0905e8a48f
Typo fix, added forward decl for bbox_t;
2012-08-23 07:31:57 -04:00
Nicholas Hastings
716b11eb47
Updated IVEngineServer.
2012-08-23 07:27:04 -04:00