3 ms·
I would add constexpr (I guess it might be included with templates?). You can do some nifty stuff like generate CRC lookup tables at compile time without hardc
by Leherenn 3y ago
I would add constexpr (I guess it might be included with templates?).
You can do some nifty stuff like generate CRC lookup tables at compile time without hardcoding them.
- maldev 3y agoYes! 100% Right, can't believe I left that out. One of the big things is to make sure to use ConstEval if you can do a new verson of c++(20), since ConstExpr isn't guaranteed and can leave stuff in the binary that can hurt size or obfuscation. For example one thing I see alot is lookup tables for hashing who use constexpr and hide some key data in there, but it "may" just randomly do it, and can cause alot of issues.
- aa-jv 3y agoHow does the use of ConstEval address this issue?
- deleted 3y ago[deleted]