diff options
-rw-r--r-- | src/corelib/thread/qbasicatomic.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/thread/qbasicatomic.h b/src/corelib/thread/qbasicatomic.h index 7a93a4b661..768c1ccdb7 100644 --- a/src/corelib/thread/qbasicatomic.h +++ b/src/corelib/thread/qbasicatomic.h @@ -63,8 +63,9 @@ QT_MODULE(Core) // New atomics template <typename T> -struct QBasicAtomicInteger +class QBasicAtomicInteger { +public: typedef QAtomicOps<T> Ops; // static check that this is a valid integer typedef char PermittedIntegerType[QAtomicIntegerTraits<T>::IsInteger ? 1 : -1]; @@ -133,8 +134,9 @@ struct QBasicAtomicInteger typedef QBasicAtomicInteger<int> QBasicAtomicInt; template <typename X> -struct QBasicAtomicPointer +class QBasicAtomicPointer { +public: typedef X *Type; typedef QAtomicOps<Type> Ops; typedef typename Ops::Type AtomicType; |