#include <QtCore/qglobal.h>
#include <QtCore/qbasicatomic.h>
This is a helper for the assignment operators of implicitly shared classes.
Your assignment operator should look like this:
Definition at line 195 of file qatomic.h.
This is a helper for the detach method of implicitly shared classes.
Your private class needs a copy constructor which copies the members and sets the refcount to 1. After that, your detach function should look like this:
Definition at line 214 of file qatomic.h.
Go to the source code of this file.