I need to use a QSharedPointer
for the reference counting, but I'll use it in a single-thread application so I don't want the thread-safety overhead (which I assume is fairly expensive).
Is there a way to turn off the thread-safety, or is there an equivalent Qt class that offers reference-counting only? If not, are there stand-alone classes that don't require me to include a big library like boost, or turn on c++11?