Ver Fonte

config: added ENTT_LAUNDER

Michele Caini há 4 anos atrás
pai
commit
b9bf1a234e
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      src/entt/config/config.h

+ 8 - 0
src/entt/config/config.h

@@ -7,6 +7,14 @@
 #endif
 
 
+#if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606L
+#   include <new>
+#   define ENTT_LAUNDER(expr) std::launder(expr)
+#else
+#   define ENTT_LAUNDER(expr) expr
+#endif
+
+
 #ifndef ENTT_USE_ATOMIC
 #   define ENTT_MAYBE_ATOMIC(Type) Type
 #else