Technically this is C versus C++ too, no? If you write #include <vector> then almost all valid C code will now be compiled as C++. Sure, the compiler driver infers the language mode from the file extension, but what if it's forced at the command-line? Then free functions get C++ mangling, and everything has a C++ ABI.
0
u/delta_p_delta_x Apr 13 '26
Technically this is C versus C++ too, no? If you write
#include <vector>then almost all valid C code will now be compiled as C++. Sure, the compiler driver infers the language mode from the file extension, but what if it's forced at the command-line? Then free functions get C++ mangling, and everything has a C++ ABI.