By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,172 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,172 IT Pros & Developers. It's quick & easy.

friend syntax

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.