Game Development Community

STL breaks on security updates (w/ fix)

by Ivan Mandzhukov · in Torque 3D Professional · 08/31/2009 (7:31 am) · 3 replies

After installing a security update,i got:

..xutility(2764) : error C3861: '_Swap_adl': identifier not found

It is a caused by deleting this:

// TEMPLATE FUNCTION _Swap_adl
template<class _Ty> inline
	void _Swap_adl(_Ty& _Left, _Ty& _Right)
	{	// exchange values stored at _Left and _Right, using ADL
	swap(_Left, _Right);
	}

This is the bug we discussed here a week ago.
www.garagegames.com/community/forums/viewthread/99287

There is no fix from MS,although it is discussed on MSDN forums.
If you see this error,place this function somewhere in xutility file and it will compile fine.
It is better that waiting the fix,which one will probably do the same:)

#1
08/31/2009 (8:29 am)
What's the software/OS you're using?
#2
08/31/2009 (9:17 am)
WinXP SP3
#3
08/31/2009 (11:06 am)
Why would the OS change anything?