nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

template Classe als friend

Von: Mario Schunda (weg_mario@familie-schunda.de) [Profil]
Datum: 26.07.2009 22:06
Message-ID: <h4icf9$94q$01$1@news.t-online.com>
Newsgroup: de.comp.lang.iso-c++
Hallo

Wie weise ich eine Template Classe als Freund zu?

Normal geht das ja so.

class Freund {};

class Geheim
{
friend class Freund;
};


Wie geht das aber mit einer template classe ?

template< typename > class Freund {};

class Geheim
{
friend ?????
};

Alles was ich Probiert habe erzeugt nur Compiler Fehler :-(

Mario

[ Auf dieses Posting antworten ]