comp.lang.ada
 help / color / mirror / Atom feed
From: Daniel Allex <dallex@erols.com>
Subject: Overloading + operator
Date: Sun, 24 Aug 2003 23:25:58 -0400
Date: 2003-08-25T03:25:43+00:00	[thread overview]
Message-ID: <3F4981C5.BDF45D51@erols.com> (raw)

I have some Ada code that overloads the + operator.  When I wrote the
code, I specified the left and write operand types.  In C++ it seems as
though I can only overload the + operator in relation to a class.  I
have a structure that contains 3 elements.  I want to add a value to the
structure.  Do I need to create a class and the add a value to the
object?






             reply	other threads:[~2003-08-25  3:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-25  3:25 Daniel Allex [this message]
2003-08-25  5:51 ` Overloading + operator Matthew Heaney
2003-08-25 13:43   ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox