3 ms·
pedant here: C++ is far from a strict superset of C, with many syntactic changes over the years.
by JoeAltmaier 9y ago
pedant here: C++ is far from a strict superset of C, with many syntactic changes over the years.
- steveklabnik 9y agoYes, at this point they're disjoint https://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B https://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B
- HumanDrivenDev 9y agoC++ is actually missing some of the nicer stuff from the last few ANSI-C standards. Struct initializers especially.
- pjmlp 9y agoThat is what constructors are for. In any case, they might make it into C++20. http://en.cppreference.com/w/cpp/language/aggregate_initialization http://en.cppreference.com/w/cpp/language/aggregate_initiali...