Fernando Cacciola wrote:
I still don't see the difference between peek/acquire and get/release. Care to enlighten me?I'm actually trying to vouch for my peek/acquire idiom here. Essentially, the name 'peek()' is intended to convey the fact that the pointer points to a managed object and that the ownership is not being transfered along with the pointer (as oposed to acquire()). If I manage to make the idiom known enough, the user will know that he can't delete the pointer and that the pointer can be used only as long as the 'source' (the optional<> object in this case) remains alive.
Dirk Gerrits
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost