3 ms·
>constexpr has to checked for leaks and UB so as long as there is coverage at compile-time Source ?I am not sure constexpr give any garanty regarding UB and/or
by soulbadguy 4y ago
>constexpr has to checked for leaks and UB so as long as there is coverage at compile-time
Source ?I am not sure constexpr give any garanty regarding UB and/or leaks
- 3836293648 4y agoConstexpr at compile times gives that guarantee, not constexpr in general. Hence static assert to force comptime evaluation
- soulbadguy 4y ago> Constexpr at compile times gives that guarantee Can you point to a source for that ? I am not trying to be pendantic, but genuilly curious