|
|
|
|
|
by jstimpfle
2297 days ago
|
|
It's not strictly a superset, to the point that there are good reasons to stay with a C compiler other than to simply stay sane. I make a lot of use of designated initializers for laying out static const arrays. And I actually don't like the way that structs in C++ can be referred to both with and without the struct tag. I also don't like how void-pointers are not compatible with other pointers without an explicit cast. Or that plain integers cannot be assigned to enum types. Some of this is just my personal preference (or Stockholm Syndrome), but the fact is that most C code will fail to compile as C++ without some changes. MSVC is probably pretty close to C99 these days. Designated initializers are C99, for example. |
|
As far as I know, MSVC just implements the C subset of C++.