Yet GCC will still apparently let you call this function without as much as a warning. This should be one of the easiest mistakes to find statically.
Clang at least errors out here.
C++ is a mess.
Clang at least errors out here.
C++ is a mess.
It sounds more like a crappy library designed by people who don't know their craft. It's easier to blame the tools.