[cfe-dev] Smart pointers for canonical types

Sebastian Redl sebastian.redl at getdesigned.at
Wed Jul 15 11:54:28 PDT 2009


Douglas Gregor wrote:
> The attached patch introduces a new class template CanQual<T>, which 
> is a smart pointer that refers to a canonical type whose dynamic type 
> is T or some subclass thereof. T will often be Type, but we also 
> expect that, e.g., CanQual<PointerType> will be used rather than const 
> PointerType*.
I love the idea. I'll have to look at the patch in detail.

Sebastian



More information about the cfe-dev mailing list