🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #792

request for comments

#792
From: Jim ADCOCK
Date: Mon, 21 Jan 1991 22:20
15 lines
911 bytes
Is there any good reason why the restriction in 13.4

"An operator function must either be a member function or take at least one
argument of a class or a reference to a class."

shouldn't be [clarified and] relaxed to:

"An operator function must either be a member function or take at least one
argument of class type or of a type derived from a class type."

This change would increase programming freedom while maintaining the
original intent of preventing operators on built-in types or their
derivatives from being overloaded.

Comments?
Technical Details
Message-ID: <21@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!microsoft!jimad

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!microsoft!jimad
From: jimad@microsoft.UUCP (Jim ADCOCK)
Newsgroups: comp.std.c++
Subject: request for comments
Message-ID: <21@microsoft.UUCP>
Date: 21 Jan 91 22:20:08 GMT
Reply-To: jimad@microsoft.UUCP (Jim ADCOCK)
Organization: Microsoft Corp., Redmond WA
Lines: 15