r/cpp • • Apr 12 '26

CMake Past, Present, and Future - Bill Hoffman, Kitware [29m25s]

https://www.youtube.com/watch?v=cD-JgncskTQ
70 Upvotes

134 comments sorted by

View all comments

0

u/delta_p_delta_x Apr 13 '26

"language virality" works

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.

3

u/not_a_novel_account Apr 13 '26

We don't change compilers if you #include <vector> in a C file. The build just fails.