epix-users
[Top][All Lists]
Advanced

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

Re: [ePiX-users] Stable release (Version 1.2.0)


From: Maik Beckmann
Subject: Re: [ePiX-users] Stable release (Version 1.2.0)
Date: Wed, 26 Sep 2007 12:37:45 +0200
User-agent: KMail/1.9.7

I'm wondering about the binary operators like
<triple.cc>
...
  P operator+ (P u, const P& v) 
  { 
    return u += v;
  }
...
</triple.cc>

I think this is a trap, because the following is what the most people expect:
  P operator+ (P const& u, const P& v) 
  { 
    P tmp(u);
    return tmp += v;
  }
like epix-1.0.x does.


Regards, Maik







reply via email to

[Prev in Thread] Current Thread [Next in Thread]