
4 Aug
2004
4 Aug
'04
7:55 a.m.
I was reading through the boost::shared_ptr source code, and I have a question about one small detail. This is in boost release 1.31.0: Around line 84 we have this code: // enable_shared_from_this support template<class T, class Y> void sp_enable_shared_from_this(boost::enable_shared_from_this<T> * pe, Y * px, shared_count const & pn) { if(pe != 0) pe->_internal_weak_this._internal_assign(px, pn); } I was curious, why is this function not inline? Jeff