I was talking to kohei about porting this macros <a href="http://opengrok.libreoffice.org/xref/libs-gui/tools/inc/tools/ref.hxx">http://opengrok.libreoffice.org/xref/libs-gui/tools/inc/tools/ref.hxx</a> to their smart pointer equivalent, he suggested using intrusive_ptr for it and as you all know you need to provide your own ref counting functions, like he did in here <a href="http://opengrok.libreoffice.org/xref/calc/sc/inc/scmatrix.hxx#251">http://opengrok.libreoffice.org/xref/calc/sc/inc/scmatrix.hxx#251</a>, so my question is should the ref count be thread safe or not?<br>