1 post tagged #warnings.
#warnings
On seven small dangling cases, Clang 23.1 with -Wlifetime-safety warns on six. GCC 16.2 with -Wall -Wextra -Wdangling-pointer=2 -Wdangling-reference gives a correct dangling report on one, from inside a standard header. Without the flag Clang already warned on three. The flag adds an escaping lambda capture, a reference across push_back and a view field set from a parameter, and it flags one correct program. Trunk renamed the push_back check.
// We use Google Analytics to understand which posts get traction and how the wro.cpp community grows. Anonymised, no ads, and you can decline -- the site works either way.