error C2296: '&': illegal, left operand has type 'uInt32 *'

  • Thread starter Thread starter Harsha_MR
  • Start date Start date
H

Harsha_MR

Guest
void* custom_memcpy_word(void* p_destination_p, const void* p_source_p, size_t p_num)
{
uInt32* DWdest_p = static_cast<uInt32*> (p_destination_p);
uInt32* DWsrc_p = static_cast<uInt32*> (const_cast<void*>(p_source_p));

if (!(DWsrc_p & 0xFFFFFFFC) && !(DWdest_p & 0xFFFFFFFC))
{



For the If condition, I do get error C2296. I wanted to make sure that 'DWsrc_p' and 'DWdest_p' are 4bytes aligned..

How to resolve this issue..?

Continue reading...
 
Back
Top