~/talk

Fighting Compiler warnings

Talkat C++Now 2017 · 2017-05-15..05-20· [c-and-cpp]
links:none on file
slides:none on file

A tiny hex digit to value routine in Boost.Algorithm triggers contradictory compiler diagnostics: one compiler warns that control reaches end of nonvoid function, another warns about converting to unsigned char as a narrowing conversion. Iterating through versions (plain, templated, local variable) surfaces unreachable-code and narrowing bugs, a bad user cast suppresses warnings but masks real compiler errors, and the takeaway is to fix code or report compiler bugs rather than silencing warnings.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.