This is the mail archive of the gcc@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: Using C++ in GCC is OK


On Tue, Jun 1, 2010 at 6:58 PM, Ian Lance Taylor <iant@google.com> wrote:
> Richard Guenther <richard.guenther@gmail.com> writes:
>
>> Overall the wiki document looks good. ?I'd like to disallow
>>
>> * Operators may only be overloaded for types which implement numeric
>> values, where the overloaded operators implement the usual numeric
>> semantics.
>>
>> though.
>
> My thinking here is that it would be reasonable to implement
> real_arithmetic and mpfr/mpc using overloaded operators. ?I could
> certainly be wrong.

It will hide the cost which is IMHO not wanted.

Richard.

>
>> I'd also like to avoid destructors where possible as we want
>> as many core data types to be POD.
>
> I adjusted the wiki accordingly.
>
> Ian
>


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