This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: with -std=c++0x typeof is gone


2010/1/28 Patrick Horgan <phorgan1@yahoo.com>:
>
> But that assumes that operator- returns the same type (possibly signed) as
> its arguments. How could you know that? The declspec(T()-T()) would take
> the return type of the (possible) operator-, no?
>

You're right; I am assuming that.

I don't know your situation.  I do wonder whether even the declspec
solution would be sufficient if T used expression templates or other
such techniques, though.

~ Scott


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]