4 ms·
C++ allows you to write code that is equally expressive as C. It is no longer true that every valid pice of C is also valid C+++, but the deviations are purely
by gmueckl 8y ago
C++ allows you to write code that is equally expressive as C. It is no longer true that every valid pice of C is also valid C+++, but the deviations are purely minor syntactical differences. I know no C construct for which a C++ counterpart does not exist. Please enlighten me if you have an example.
- kccqzy 8y agoVLA.
- gmueckl 8y agoOkay, this is true. Using alloca directly is not a good alternative.
- mikulas_florek 8y agohttps://en.cppreference.com/w/c/language/restrict https://en.cppreference.com/w/c/language/restrict
- gmueckl 8y agoReplace it with __restrict and you're fine.
- mikulas_florek 8y agonot standard c++
- maximilianburke 8y agoDesignated initializers. (yet)
- mikulas_florek 8y agothat's just syntactic sugar