🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

inconsistance in over.over

#3173
From: Alexander Krotoff
Date: Thu, 01 Feb 1996 01:53
29 lines
1661 bytes
Hello c++ gurus,

There is small inconsistance in the Oct 95 WP:
-----------------------------------------------------------------------
13.4	Address of overloaded function	[over.over]
In the example on the end of the section:

	int (X::*p5)(int)  = &(X::f);	// error: wrong syntax for</B>
					// pointer to member</B>
	int    (*p6)(long) = &(X::f);	// OK</B>1

Error: qualified-id enclosed in parentheses.
-----------------------------------------------------------------------
5.3.1	Unary operators			[expr.unary.op]

3	A pointer to member is only formed when an explicit & is used and
	its operand is a qualified-id not enclosed in parentheses.
-----------------------------------------------------------------------

I suppose the error is in the over.over.

--
Alexander N. Krotoff		krotoff@such.srcc.msu.su
Research Computer Center	tel: +7(095)939-2638
Moscow State University		fax: +7(095)939-4430
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <4eo2mk$7tc@boy.nmd.msu.ru>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back

Show Full Headers
Complete Article Headers
From: krotoff@such.srcc.msu.su (Alexander Krotoff)
Message-ID: <4eo2mk$7tc@boy.nmd.msu.ru>
X-Original-Date: 31 Jan 1996 18:43:16 +0300
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 01 Feb 96 01:53:57 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: inconsistance in over.over
Organization: Research Computer Center, Moscow State University
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMRAdQuEDnX0m9pzZAQEzLwF/bdm0639czwu7Aj/pW7IMMLxRWuE6KKrh
 illcgIarnxWnBkTfu1HCNrbMCXEemPv+
 =MO6v