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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/1/28 Patrick Horgan <phorgan1@xxxxxxxxx>:
>
> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux