[cairo] [cairomm] RefPtr<T>::operator*() ?

Ian Britten britten at caris.com
Wed Aug 20 04:55:23 PDT 2008

Hi all,
Just a suggestion, but it might be nice if the cairomm RefPtr
class had an operator*() (Or, a get(), or something).

Otherwise, if func() is written to accept a "const T &", you
have to write code like:
        Cairo::RefPtr<T> someObj;  (Populated from somewhere)
        func( *someObj.operator->() );
instead of the simpler/cleaner
        func( *someObj );


More information about the cairo mailing list