[cairo] cairomm RefPtr

Larry Lewis lewislp at yahoo.com
Sat Dec 1 09:13:04 PST 2007


Is there a specific reason why cairomm's RefPtr implementation (along with glibmm) does not provide the T_CppObject& operator*() and T_CppObject* get() methods?  Both reference-counting pointer implementations I use on a regular basis (boost::shared_ptr and Poco::SharedPtr) provide this functionality, which is extremely useful for passing the object by reference or directly accessing the raw pointer.  It's unfortunate to have to resort to the ugly operator->() syntax to access the pointer.

Larry




More information about the cairo mailing list