Junior Spellweaver
- Joined
- Nov 30, 2009
- Messages
- 111
- Reaction score
- 132
Hi can anyone help me converting this part of source its a deprecated code in my source "std::copy"
can i ask what is your code for this??
edit:
someone advice me to use memcpy for std::copy.. the source and all library are all updated to vs2008 and games run but, some part of the game makes crash and i tried to debug it and it points to this part of source.
can i ask what is your code for this??
Code:
inline BOOL CByteStream::operator >> ( DWORD &Value )
{
int sizeBuff = (int)(m_Buffer.end() - (m_Buffer.begin()+m_dwIter));
GASSERT ( sizeof(Value)<=sizeBuff );
std::copy ( &m_Buffer[m_dwIter], &m_Buffer[m_dwIter+sizeof(Value)], LPBYTE(&Value) );
m_dwIter += sizeof(Value);
return TRUE;
}
edit:
someone advice me to use memcpy for std::copy.. the source and all library are all updated to vs2008 and games run but, some part of the game makes crash and i tried to debug it and it points to this part of source.