~/talk

STATIC_WARN

Talkat CppCon 2017 · 2017-09-24..09-29· [rust]
links:none on file
slides:none on file

When a static_assert would break portability but a compile time warning suffices this shows how to emit one by instantiating a templated warn_if type specialized to use a deprecated attribute and exposing it via a static_warn macro The macro evolves: add a defaulted constructor so it works in expressions then create an anonymous variable using token pasting with __COUNTER__ and __LINE__ so warnings point at the right site Works on GCC and MSVC Caveat do not replace static_assert

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.