J
James Kanze
[...]
It's conform with C++03, which says that this must have type T*
It depends. But reference counted pointers have been oversold.
Typically (and I know that there are exceptions), having
"thread-safe methodes" (whatever that actually medans) doesn't
buy you much. Thread safety is better handled at a higher
level.
What's wrong with your compiler?
It's conform with C++03, which says that this must have type T*
I would like to say that the most frequent use for reference
counts are thread-safe objects. Because as long as the object
is thread local or dedicated to exactly one thread at one
time, there is simply no need for reference counts.
It depends. But reference counted pointers have been oversold.
But if the object has (some) thread-safe methods, it makes
sense, that more than one thread holds an active reference to
the object.
Typically (and I know that there are exceptions), having
"thread-safe methodes" (whatever that actually medans) doesn't
buy you much. Thread safety is better handled at a higher
level.