Steven Schveighoffer:

> I don't think this is a good idea.  Generic code could result in an error  
> where there shouldn't be.  For example:
> 
> int foo(T)()
> {
>     if(T.sizeof == char.sizeof)
>       ...
> }
> 
> Would this fail to compile where T == char?  What about if T == ubyte?

I was thinking more about a warning than an error. But you are right, my 
enhancement request 5540 seems premature, I/we have to think some more about it.

Bye and sorry,
bearophile

Reply via email to