[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: inherted overload & mixed type operations
On Thu, Jan 13, 2000 at 03:47:36AM +0100, Marc Lehmann wrote:
> On Wed, Jan 12, 2000 at 04:20:52PM -0500, Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
> > I have no idea what are you talking about. Please explain how you can
> > do this in C++:
>
> template<class A, class B> A operator +(A a, B b) { ... }
"..." is not a legal C++ statement. And you are changing signatures
of A and B at "run time" (=after they were written). This is similar
to overwriting PDL overloaded multiplication operator.
Ilya
- References to:
-
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]