can we get a shared_ptr with non thread-safe reference counting

75 views
Skip to first unread message

Viktor Kirilov

unread,
Apr 16, 2015, 4:09:55 AM4/16/15
to std-dis...@isocpp.org
Is there a chance to have a non thread-safe shared_ptr in the standard?

I was thinking either as a new template or maybe the current shared_ptr should have a template parameter if it's ref counting should be atomic.


Andrei Alexandrescu talked at the cppcon how to implement such a pointer yourself but I feel the standard should provide one - https://www.youtube.com/watch?v=Qq_WaiwzOtI

Currently the only publicly available solution seems to be building boost with a flag/define to disable thread-safe reference counting.

Reply all
Reply to author
Forward
0 new messages