I have seen in some stackoverflow questions/answers people talking about a boost macro (I guess it should be set at compile time) to avoid smart_ptr thread safeness. I have been searching for it around and wasn’t able to find it. Could anybody point it out?
In the other hand, using this macro will avoid the ref counting heap allocation?.
Thanks in advance.
http://www.boost.org/doc/libs/1_48_0/libs/smart_ptr/shared_ptr.htm#ThreadSafety