debugbreak icon indicating copy to clipboard operation
debugbreak copied to clipboard

Defining functions as static causes ODR violations in C++

Open jwakely opened this issue 3 years ago • 0 comments

For C++ they should be just inline not static, otherwise you get (probably harmless) ODR violations when calling the debug_break function from function templates or inline functions.

jwakely avatar Jan 04 '22 13:01 jwakely