Designated initializers ordering (C++20)
Does the following C++20 code compile?
struct Point { int x; int y; };
Point pt { .y = 10, .x = 11 };
Sign in to answer questions and track your progress
Sign InDoes the following C++20 code compile?
struct Point { int x; int y; };
Point pt { .y = 10, .x = 11 };
Sign in to answer questions and track your progress
Sign In