From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac93bb8de02c38a8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-24 20:26:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: Daniel Allex Newsgroups: comp.lang.ada Subject: Overloading + operator Date: Sun, 24 Aug 2003 23:25:58 -0400 Message-ID: <3F4981C5.BDF45D51@erols.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: UmFuZG9tSVZb4QGefGD6jDKPG+Ju9Jhat9OAe6SSjvYOF+xrusnOaGvpDuS3vFdi X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 25 Aug 2003 03:25:43 GMT X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:41833 Date: 2003-08-25T03:25:43+00:00 List-Id: 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?