RE: [OBORONA-SPAM] [Dev-C++] Friend functions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Mat...@Ve...> - 2005-05-16 22:05:45
|
Order does not matter on friend declarations. Most classes I have seen put
them at the bottom because they do not have much to do with what the class
does as a whole.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Denis
Korzunov
Sent: Monday, May 16, 2005 6:36 AM
To: Farzan Hajian
Cc: dev...@li...
Subject: Re: [OBORONA-SPAM] [Dev-C++] Friend functions
Tuesday, May 17, 2005, 1:39:34 PM, you wrote:
If you whant to declare some friend function in the class declaration
then you should place function prototype before the class declaration. e.g.
int main();
namespace MyNameSpace
{
class MyClass
{
friend int main();
...
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|