friend operator


 
Thread Tools Search this Thread
Top Forums Programming friend operator
Prev   Next
# 1  
Old 04-25-2006
friend operator

Hello,

I have a problem by compiling a class with the following friend function in Header file:

class X{

private:
......

protected:
.......

public:

friend ostream& operator<<(ostream& target, const PARA_DSC& para);


};


the compiler output is:

"X.hxx", line 346: Warning (Anachronism): Class friends require an explicit "class".
"X.hxx", line 346: Error: "," expected instead of "&".
1 Error(s) and 1 Warning(s) detected.
*** Error code 1

Has anybody an idea, where the problem coud be?


Greetings

nik
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Programming

What are Friend Functions in C++?

Hey C++ masters! I am a beginner in C++ and learning about it but have some doubts about Friend Functions. Anyone describe C++ Friend Functions? (1 Reply)
Discussion started by: ggiwebsinfo
1 Replies

2. UNIX for Dummies Questions & Answers

welcome YOUR NEW FRIEND RETO

Hello Every One Iam Your New Friend Reto .iam New In Unix Let Me Say That Iam Zero . And I Wish That You All Can Help Me With It By Your Help I Will Get To The Top Your New Friend Reto From Iraq Thank You All (0 Replies)
Discussion started by: retolop
0 Replies

3. UNIX Desktop Questions & Answers

Find a friend

I am unix beginner, aspiration learning with unix. i want get help for unix .I have a dream that i become unix master-hand. I wish get your assist for unix or net. (2 Replies)
Discussion started by: Yeliu
2 Replies
Login or Register to Ask a Question
ost::MIMEMultipart(3)					     Library Functions Manual					     ost::MIMEMultipart(3)

NAME
ost::MIMEMultipart - A container class for multi-part MIME document objects which can be streamed to a std::ostream destination. SYNOPSIS
#include <mime.h> Inherited by ost::MIMEMultipartForm. Public Member Functions MIMEMultipart (const char *document) Contruct a multi-part document, and describe it's type. virtual void head (std::ostream *output) Stream the headers of the multi-part document. virtual void body (std::ostream *output) Stream the 'body' of the multi-part document. char ** getHeaders (void) Get a string array of the headers to use. Protected Member Functions virtual ~MIMEMultipart () Protected Attributes char boundry [8] char mtype [80] char * header [16] MIMEItemPart * first MIMEItemPart * last Friends class __EXPORT MIMEItemPart Detailed Description A container class for multi-part MIME document objects which can be streamed to a std::ostream destination. Author: David Sugar dyfet@ostel.com container for streamable multi-part MIME documents. Constructor &; Destructor Documentation virtual ost::MIMEMultipart::~MIMEMultipart () [protected], [virtual] ost::MIMEMultipart::MIMEMultipart (const char *document) Contruct a multi-part document, and describe it's type. Parameters: document (content) type. Member Function Documentation virtual void ost::MIMEMultipart::body (std::ostream *output) [virtual] Stream the 'body' of the multi-part document. This involves streaming the headers and body of each document part. Parameters: output to stream document body into. char** ost::MIMEMultipart::getHeaders (void) [inline] Get a string array of the headers to use. This is used to assist URLStream::post. Returns: array of headers. virtual void ost::MIMEMultipart::head (std::ostream *output) [virtual] Stream the headers of the multi-part document. The headers of individual entities are streamed as part of the body. Parameters: output to stream document header into. Friends And Related Function Documentation friend class __EXPORT MIMEItemPart [friend] Member Data Documentation char ost::MIMEMultipart::boundry[8] [protected] MIMEItemPart* ost::MIMEMultipart::first [protected] char* ost::MIMEMultipart::header[16] [protected] MIMEItemPart * ost::MIMEMultipart::last [protected] char ost::MIMEMultipart::mtype[80] [protected] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::MIMEMultipart(3)