Why can't I do "new uint32_t[ size ]"
Why can't I do "new uint32_t[ size ]"
- Subject: Why can't I do "new uint32_t[ size ]"
- From: Per Bull Holmen <email@hidden>
- Date: Tue, 12 Jul 2011 19:24:11 +0200
Hi
Why can't I do the following in XCode 4.2 (c++):
#include <stdint.h>
uint32_t *buffer;
buffer = new uint32_t[ 512 ];
It accepts uint32_t as a type, and if I change "new uint32_t" to "new
unsigned int", it works. I thought perhaps "new uint32_t" wasn't legal
in c++, but after searching I find many source code examples that do
this. In XCode I get the error message " Missing type specifier after
'operator' ". Sorry if this isn't the right list, but of all Apple
developer mailing lists, this was the most appropriate I could find.
If I should ask elsewhere, please tell me where.
Per
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden