瀏覽代碼

stl: stl::nullptr_t

skypjack 3 周之前
父節點
當前提交
490bf05f3e
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/entt/meta/factory.hpp
  2. 1 0
      src/entt/stl/cstddef.hpp

+ 1 - 1
src/entt/meta/factory.hpp

@@ -433,7 +433,7 @@ public:
         using descriptor = meta_function_helper_t<Type, decltype(Getter)>;
         static_assert(Policy::template value<typename descriptor::return_type>, "Invalid return type for the given policy");
 
-        if constexpr(stl::is_same_v<decltype(Setter), std::nullptr_t>) {
+        if constexpr(stl::is_same_v<decltype(Setter), stl::nullptr_t>) {
             base_type::data(
                 internal::meta_data_node{
                     id,

+ 1 - 0
src/entt/stl/cstddef.hpp

@@ -7,6 +7,7 @@
 namespace entt::stl {
 
 using std::byte;
+using std::nullptr_t;
 using std::ptrdiff_t;
 using std::size_t;