I'm trying to use an initializer list in XCode 4,
struct Vector2f
{
float x,y;
Vector2f():x(0.f),y(0.f){}
Vector2f( float ix, float iy ):x(ix),y(iy){}
} ;
But I'm getting 7 compiler errors,
So it looks like it thinks I'm doing some "bit-field" business, but I'm trying to use an initializer list!
The code file is marked as "C++ header" in the file properties, but it seems it's compiling as C?