skypjack 3 tygodni temu
rodzic
commit
f7bf2d1245
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 1
      src/entt/core/any.hpp
  2. 1 0
      src/entt/stl/cstddef.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -34,7 +34,7 @@ struct basic_any_storage {
     union {
         const void *instance{};
         // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays)
-        alignas(Align) std::byte buffer[Len];
+        alignas(Align) stl::byte buffer[Len];
     };
 };
 

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

@@ -6,6 +6,7 @@
 /*! @cond ENTT_INTERNAL */
 namespace entt::stl {
 
+using std::byte;
 using std::ptrdiff_t;
 using std::size_t;