Просмотр исходного кода

maybe_atomic_type -> maybe_atomic_t

Michele Caini 7 лет назад
Родитель
Сommit
e97d9bb095
3 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      src/entt/config/config.h
  2. 1 1
      src/entt/core/family.hpp
  3. 1 1
      src/entt/core/monostate.hpp

+ 2 - 2
src/entt/config/config.h

@@ -15,10 +15,10 @@
 #ifndef ENTT_NO_ATOMIC
 #include <atomic>
 template<typename Type>
-using maybe_atomic_type = std::atomic<Type>;
+using maybe_atomic_t = std::atomic<Type>;
 #else
 template<typename Type>
-using maybe_atomic_type = Type;
+using maybe_atomic_t = Type;
 #endif // ENTT_USE_ATOMIC
 
 

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

@@ -19,7 +19,7 @@ namespace entt {
  */
 template<typename...>
 class family {
-    inline static maybe_atomic_type<std::size_t> identifier;
+    inline static maybe_atomic_t<std::size_t> identifier;
 
     template<typename...>
     inline static const auto inner = identifier++;

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

@@ -45,7 +45,7 @@ struct monostate {
 
 private:
     template<typename Type>
-    inline static maybe_atomic_type<Type> value{};
+    inline static maybe_atomic_t<Type> value{};
 };