470,641 Members | 2,453 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

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 ?
May 6 '06 #1
1 1736
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
May 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Trevor Lango | last post: by
12 posts views Thread by Bryan Parkoff | last post: by
5 posts views Thread by Srini nandiraju | last post: by
15 posts views Thread by Samee Zahur | last post: by
3 posts views Thread by jdurancomas | last post: by
1 post views Thread by Korara | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.