Sponsored Content
Full Discussion: friend operator
Top Forums Programming friend operator Post 302204131 by asji on Tuesday 10th of June 2008 07:23:07 PM
Old 06-10-2008
I think you need to put the "friend" after the return value of the operator. I.e.:

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

If "friend" is the first token, then it expects the declaration of a friend class.
 

3 More Discussions You Might Find Interesting

1. 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

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. 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
ost::MIMEItemPart(3)					     Library Functions Manual					      ost::MIMEItemPart(3)

NAME
ost::MIMEItemPart - This is used to attach an item part to a MIME multipart document that is being streamed. SYNOPSIS
#include <mime.h> Inherited by ost::MIMEFormData. Protected Member Functions virtual void head (std::ostream *output) Stream the header(s) for the current document part. virtual void body (std::ostream *output)=0 Stream the content of this document part. MIMEItemPart (MIMEMultipart *top, const char *ct) Construct and attach a document part to a multipart document. virtual ~MIMEItemPart () Protected Attributes MIMEMultipart * base MIMEItemPart * next const char * ctype Friends class __EXPORT MIMEMultipart Detailed Description This is used to attach an item part to a MIME multipart document that is being streamed. The base item part class is used by all derived items. Author: David Sugar dyfet@ostel.com item or part of a multi-part object. Constructor &; Destructor Documentation ost::MIMEItemPart::MIMEItemPart (MIMEMultipart *top, const char *ct) [protected] Construct and attach a document part to a multipart document. Parameters: top multipart document to attach to. ct Content-Type to use. virtual ost::MIMEItemPart::~MIMEItemPart () [protected], [virtual] Member Function Documentation virtual void ost::MIMEItemPart::body (std::ostream *output) [protected], [pure virtual] Stream the content of this document part. Parameters: output to stream document body into. Implemented in ost::MIMEFormData. virtual void ost::MIMEItemPart::head (std::ostream *output) [protected], [virtual] Stream the header(s) for the current document part. Parameters: output to stream header into. Reimplemented in ost::MIMEFormData. Friends And Related Function Documentation friend class __EXPORT MIMEMultipart [friend] Member Data Documentation MIMEMultipart* ost::MIMEItemPart::base [protected] const char* ost::MIMEItemPart::ctype [protected] MIMEItemPart* ost::MIMEItemPart::next [protected] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::MIMEItemPart(3)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy