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 -struct QBasicAtomicInteger +class QBasicAtomicInteger { +public: typedef QAtomicOps Ops; // static check that this is a valid integer typedef char PermittedIntegerType[QAtomicIntegerTraits::IsInteger ? 1 : -1]; @@ -133,8 +134,9 @@ struct QBasicAtomicInteger typedef QBasicAtomicInteger QBasicAtomicInt; template -struct QBasicAtomicPointer +class QBasicAtomicPointer { +public: typedef X *Type; typedef QAtomicOps Ops; typedef typename Ops::Type AtomicType;