🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Forward declaration of class member functions

#3724
From: Ron Burk
Date: Mon, 18 Mar 1996 22:58
26 lines
1519 bytes
I am having difficulty finding language in the draft
that establishes the legality or illegality of the following:

class Forward;

class Any {
    friend int Forward::SomeFunc(int SomeArg);
    };

It certainly seems like a useful construct, and I don't
see any impossibility in implementing it, but I don't
have a compiler that accepts it (in fact, the Borland C++ v5.0
beta gets an internal compiler error on it). Can anyone
point me to relevant language in the draft that resolves
this question?

 Thanks,
 Ron Burk
 Windows Developer's Journal
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <UPMAIL07.199603182248040068@msn.com>
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern
From: "Ron Burk" <RonBurk@msn.com>
Newsgroups: comp.std.c++
Subject: Forward declaration of class member functions
Date: 18 Mar 1996 14:58:21 PST
Organization: -
Approved: austern@isolde.mti.sgi.com
Message-ID: <UPMAIL07.199603182248040068@msn.com>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Mon, 18 Mar 96 22:51:28 UT
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMU3qnky4NqrwXLNJAQExQgIAj4KU8lS4DuDAhNCu3AwCUZkS8+Xsig6h
 17cl41t44/lleGM4kKlhOIBM0xxuEBATcwDrF0zatMpMK0/z+RmitQ==
 =i+qZ
Originator: austern@isolde.mti.sgi.com