|
-
March 19th, 2012, 03:42 PM
#5
Re: SetDIBits function
Are you really sure that the contiguous memory of a 2D array is guaranteed Paul?
When I thought about this again I found a tiny fragment somewhere in the back of my head of having a encountered a bug caused by a 2D array being accessed as a 1D array.
As I interpret this http://www.open-std.org/jtc1/sc22/WG...docs/n1256.pdf p6.7.5.2:6 it says that int[50][100] is not compatible with int[100][50]. Wouldn't they be that (to some extent) if the memory is contiguous?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|