maybe_atomic_type -> maybe_atomic_t

This commit is contained in:
Michele Caini
2019-01-26 00:08:00 +01:00
parent 2f3b02e870
commit e97d9bb095
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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++;

View File

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