commit 9bc7743fec1c5fbb367280570137b984e7474d46 parent d94372e0e231f9ca36834e579ef6dedc5f1dc996 Author: d.levin256@gmail.com <d.levin256@gmail.com> Date: Wed, 24 Jan 2024 08:44:23 +0000 Simpler CMT_CVAL macro Diffstat:
M | include/kfr/cometa.hpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/cometa.hpp b/include/kfr/cometa.hpp @@ -273,7 +273,7 @@ constexpr CMT_INTRINSIC T val_of(T value) return value; } -#define CMT_CVAL(...) ::cometa::val_of(decltype(__VA_ARGS__)()) +#define CMT_CVAL(...) (decltype(__VA_ARGS__)::value) template <typename T> constexpr CMT_INTRINSIC bool is_constant_val(T)