Sponsored Content
Full Discussion: friend operator
Top Forums Programming friend operator Post 302071827 by nik on Tuesday 25th of April 2006 05:42:56 AM
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
 

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
YAF_SESSION(3)								 1							    YAF_SESSION(3)

The Yaf_Session class

INTRODUCTION
CLASS SYNOPSIS
Yaf_Session Yaf_SessionIteratorArrayAccessCountable Properties o protectedstatic$_instance o protected$_session o protected$_started Methods o private void Yaf_Session::__clone (void ) o Yaf_Session::__construct (void ) o public void Yaf_Session::count (void ) o public void Yaf_Session::current (void ) o public void Yaf_Session::del (string $name) o public void Yaf_Session::__get (string $name) o publicstatic void Yaf_Session::getInstance (void ) o public void Yaf_Session::has (string $name) o public void Yaf_Session::__isset (string $name) o public void Yaf_Session::key (void ) o public void Yaf_Session::next (void ) o public void Yaf_Session::offsetExists (string $name) o public void Yaf_Session::offsetGet (string $name) o public void Yaf_Session::offsetSet (string $name, string $value) o public void Yaf_Session::offsetUnset (string $name) o public void Yaf_Session::rewind (void ) o public void Yaf_Session::__set (string $name, string $value) o private void Yaf_Session::__sleep (void ) o public void Yaf_Session::start (void ) o public void Yaf_Session::__unset (string $name) o public void Yaf_Session::valid (void ) o private void Yaf_Session::__wakeup (void ) PROPERTIES
o $_instance - o $_session - o $_started - PHP Documentation Group YAF_SESSION(3)
All times are GMT -4. The time now is 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy