J
Jack
Hi, This code I inherited worked under VC7 now fails under VC8 with error:
error C2664: 'memcpy' : cannot convert parameter 1 from
'std::_Vector_iterator<_Ty,_Alloc>' to 'void *'
vector <png_color> vPalette;
..
..
..
memcpy(vPalette.begin(), palette, num_palette * sizeof png_color);
png_color is part of the PNG graphics library so I can't change that.
So, what is the best way to substitute the memcpy()?
Thanks
error C2664: 'memcpy' : cannot convert parameter 1 from
'std::_Vector_iterator<_Ty,_Alloc>' to 'void *'
vector <png_color> vPalette;
..
..
..
memcpy(vPalette.begin(), palette, num_palette * sizeof png_color);
png_color is part of the PNG graphics library so I can't change that.
So, what is the best way to substitute the memcpy()?
Thanks