Skip to content

Commit

Permalink
[struct_pack][fix] fix compile error in msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Aug 12, 2024
1 parent c465b6c commit 8105ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ylt/struct_pack/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ template <typename T, typename = void>
template<typename T>
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;
}
}

Expand Down

0 comments on commit 8105ecf

Please sign in to comment.