Monday, October 25, 2010

Const Autoptr<T>

A const autoptr<T> can never lose ownership of its contained pointer, unless you const_cast<>() the constness away.

Reference: Exceptional C++ by Herb Sutter. Addison-Wesley, 1999, pp. 159-160.

No comments:

Post a Comment