diff --git a/include/ylt/struct_pack/reflection.hpp b/include/ylt/struct_pack/reflection.hpp index fb61b2ced..ed48ca983 100644 --- a/include/ylt/struct_pack/reflection.hpp +++ b/include/ylt/struct_pack/reflection.hpp @@ -593,10 +593,10 @@ template template constexpr decltype(auto) delay_sp_config_eval() { if constexpr (sizeof(T)==0) { - return (T*){}; + return (T*)nullptr; } else { - return (sp_config*){}; + return (sp_config*)nullptr; } }