friend syntax



 DEVELOP > c-Plus-Plus > friend syntax

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Vincent RICHOMME"
Date: 06 May 2006 05:10:41 PM
Object: friend syntax
Hi,
I have class A and I would like to declare the following templated
class as a friend
template <typename Tenum, typename Tproperties>
class CEnumBinder
class A
{
public:
// How to declare CEnumBinder as a friend ??
};
Is it possible to declare a specialized class as a friend ?
.

User: "Victor Bazarov"

Title: Re: friend syntax 06 May 2006 06:44:42 PM
Vincent RICHOMME wrote:

I have class A and I would like to declare the following templated
class as a friend

template <typename Tenum, typename Tproperties>
class CEnumBinder



class A
{
public:
// How to declare CEnumBinder as a friend ??

template<...> friend class CEnumBinder;

};

Is it possible to declare a specialized class as a friend ?

friend class CEnumBinder<int,double>;
Victor
--
Please remove capital As from my address when replying by mail
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER