Since boost::shared_ptr
could be called very frequently and simply returns a pointer, isn't the ->
operator a good candidate for being inlined
?
T * operator-> () const // never throws
{
BOOST_ASSERT(px != 0);
return px;
}
Would a good compiler automatically inline
this anyway?
Should I lose any sleep over this? :-)