Hi,

On Wed, 16 May 2012, Lawrence Crowl wrote:

> > Because it accepts any type as tree argument?  It's of course not less 
> > type safety than using macros, but less type safety compared to not 
> > using templates.
> 
> The overload works if the only types are tree and const_tree. In the 
> future, we may wish to refine the types so that, for example, we can 
> have a pointer to a decl and ask if it is a var decl.

Cross the bridge when you reach it, not before.  Not everybody agrees that 
the splitting of tree would be a good idea.  Right now templates aren't 
necessary, so you shouldn't use them.  (well, and an investigation why 
they come up with smaller .text would be in order anyway).


Ciao,
Michael.

Reply via email to