4 Jun
2013
4 Jun
'13
5:36 p.m.
On Mon, Jun 3, 2013 at 5:33 PM, Steven Watanabe
using boost::phoenix::bind; using boost::phoenix::placeholders::_1; bind(x, *bind(GetC, _1))
Steven, Thank you, I did not know about phoenix's operator capability. Do you agree with this statement: GetC increments the shared_ptr's reference count when it returns a shared_ptr to operator*. After operator* dereferences, it decrements the shared_ptr reference count. Then the function "x" is executed. Hence nobody is holding a reference count on behalf of function "x". Thank you again, Chris