Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

Is this C++11 or whatever ?

$
0
0
I have a project here which I still need to build with MSVC 8.0 (VS2005). Today, someone upstream added the following code:- Code: --------- // In a header file:- typedef enum _cairo_svg_unit { CAIRO_SVG_UNIT_USER = 0, CAIRO_SVG_UNIT_EM, CAIRO_SVG_UNIT_EX, CAIRO_SVG_UNIT_PX, CAIRO_SVG_UNIT_IN, CAIRO_SVG_UNIT_CM, CAIRO_SVG_UNIT_MM, CAIRO_SVG_UNIT_PT, CAIRO_SVG_UNIT_PC, CAIRO_SVG_UNIT_PERCENT } cairo_svg_unit_t; // In a source file:- static const char * _cairo_svg_unit_strings[] = { [CAIRO_SVG_UNIT_USER] = "", // <--- error occurs here !! [CAIRO_SVG_UNIT_EM] = "em", [CAIRO_SVG_UNIT_EX] = "ex", [CAIRO_SVG_UNIT_PX] = "px", [CAIRO_SVG_UNIT_IN] = "in", [CAIRO_SVG_UNIT_CM] = "cm", [CAIRO_SVG_UNIT_MM] = "mm", [CAIRO_SVG_UNIT_PT] = "pt", [CAIRO_SVG_UNIT_PC] = "pc", [CAIRO_SVG_UNIT_PERCENT] = "%" }; --------- MSVC complains giving me *error C2059: syntax error : '['* I'm guessing this is some unsupported syntax which got added later than 2005?

Viewing all articles
Browse latest Browse all 3027

Latest Images

Trending Articles



Latest Images