Workaround Issue 11497 - lambda in "static if"/"assert" prevent inlining of function