Browse Source

fix `std::is_pod<>`

blueloveTH 2 năm trước cách đây
mục cha
commit
fab6d615a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      include/pocketpy/namedict.h

+ 1 - 1
include/pocketpy/namedict.h

@@ -19,7 +19,7 @@ constexpr T default_invalid_value(){
 template<typename V>
 template<typename V>
 struct SmallNameDict{
 struct SmallNameDict{
     using K = StrName;
     using K = StrName;
-    static_assert(std::is_pod_v<V>);
+    static_assert(is_pod<V>::value);
 
 
     bool _is_small;
     bool _is_small;
     uint16_t _size;
     uint16_t _size;