deprecated copy
I'm trying to use VC8 to compile some code that's compiled with VC6 and VC7
okay and get the following. I can't find any section in the help titled
"Safe Standard C++ Library" and can't figure out what it's complaining about:
D:\VS2005\VC\include\xutility(2282) : error C2220: warning treated as error -
no 'object' file generated
D:\VS2005\VC\include\xutility(2282) : warning C4996: 'std::_Copy_opt' was
declared deprecated
D:\VS2005\VC\include\xutility(2270) : see declaration of
'std::_Copy_opt'
Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
..\..\classes\src\SnmpAsnUtils.cpp(7) : see reference to function
template instantiation '_OutIt std::copy<const unsigned
int*,UINT*>(_InIt,_InIt,_OutIt)' being compiled
with
[
_OutIt=UINT *,
_InIt=const unsigned int *
]
Here's a snippet of the code:
void asn_oid_cpy(AsnObjectIdentifier *Dest, const unsigned int *ids, unsigned
int length)
{
std::copy(ids, ids + length, Dest->ids);
Dest->idLength = length;
}