This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cxx-conversion] Make double_int a class with methods and operators. (issue6443093)
- From: Lawrence Crowl <crowl at google dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: reply at codereview dot appspotmail dot com, dnovillo at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Aug 2012 15:21:19 -0700
- Subject: Re: [cxx-conversion] Make double_int a class with methods and operators. (issue6443093)
- References: <20120807003514.1236A2226A9@jade.mtv.corp.google.com> <5021A003.2000607@redhat.com>
On 8/7/12, Richard Henderson <rth@redhat.com> wrote:
> On 08/06/2012 05:35 PM, Lawrence Crowl wrote:
> > +inline double_int &
> > +double_int::operator ++ ()
> > +{
> > + *this + double_int_one;
> > + return *this;
> > +}
> > +
> > +inline double_int &
> > +double_int::operator -- ()
> > +{
> > + *this - double_int_one;
> > + return *this;
> > +}
>
> Surely unused results there?
Typically yes, but that is the interface for that operator.
--
Lawrence Crowl