This code does not compile on VS2010:
struct Point {
float x;
float y;
};
void do_something(Point p) {
// something happens here
}
int main(int argc, char **argv) {
do_something({10, 11});
}
Are there any versions of C++ where this is legal syntax?