comp.lang.ada
 help / color / mirror / Atom feed
* Overloading + operator
@ 2003-08-25  3:25 Daniel Allex
  2003-08-25  5:51 ` Matthew Heaney
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Allex @ 2003-08-25  3:25 UTC (permalink / 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?






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-25 13:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-25  3:25 Overloading + operator Daniel Allex
2003-08-25  5:51 ` Matthew Heaney
2003-08-25 13:43   ` Stephen Leake

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