News for hackers. Stuff that matters.
Re:Bounded Integer: Header-only C++ library replaces integer... by OskarS on Sunday September 29, 2019 @03:52PM (#21109268)
constexpr functions are not inlined in debug builds. They can't be: the whole point of debug builds is that you can attach a debugger and step through the code.

Illustration, compare the assembly for "foo1" and "foo2": https://godbolt.org/z/t9Zkx-

Re:Bounded Integer: Header-only C++ library replaces integer... by banachtarski on Sunday September 29, 2019 @03:58PM (#21109301)
Ah ok, my mistake, I read "debug" as "-g" not "-O0." I generally run with optimizations on but with symbols.
Re:Bounded Integer: Header-only C++ library replaces integer... by gpderetta on Sunday September 29, 2019 @07:11PM (#21110235)
For what is worth they are optimized out with -Og (if that doesn't count as debug build I don't know what does).