maybe_atomic_type -> maybe_atomic_t
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -45,7 +45,7 @@ struct monostate {
|
||||
|
||||
private:
|
||||
template<typename Type>
|
||||
inline static maybe_atomic_type<Type> value{};
|
||||
inline static maybe_atomic_t<Type> value{};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user