4 ms·
C99 and C++ aren't compatible, unfortunately. For example, C99 designated initialisers aren't in C++ at all, which is a shame as they're fantastically useful:
by david-given 10y ago
C99 and C++ aren't compatible, unfortunately.
For example, C99 designated initialisers aren't in C++ at all, which is a shame as they're fantastically useful:
struct foo {
int i;
double j;
};
struct foo f = { .j=9.1, i=4 };
See http://stackoverflow.com/questions/18731707/why-does-c11-not-support-designated-initializer-list-as-c99 http://stackoverflow.com/questions/18731707/why-does-c11-not....