3 ms·
As well as templates, C++ has function overloading, so when a function is named in an error message it has to show all the arguments as well. And if it can't fi
by nnethercote 8y ago
As well as templates, C++ has function overloading, so when a function is named in an error message it has to show all the arguments as well. And if it can't find a function variant that matches a call, it'll print out a "did you mean this one?" message for all of them.
- masklinn 8y agoAnd of course C++ harks back to an era where error messages were not considered much of a concern. It took the Clang project for C compilation errors to start improving (including kicking gcc's ass), and C is not the most difficult language to parse/validate.