🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: de.comp.lang.c++
1 messages
1 total messages Started by Thomas Arend Thu, 14 Dec 1995 00:29
Templates
#993
Author: Thomas Arend
Date: Thu, 14 Dec 1995 00:29
41 lines
1258 bytes
Hallo allerseits,

ich habe zwei Probleme mit templates, bei denen ich Hilfe benoetige:

1a.) Wie mache ich eine template-Klasse fuer alle template-Argument zu  
einem Freund einer nicht-template-Klasse?

  template<class T>
  class A
  { ... } ;

  class B
  {
  template<class T> friend class A ; // so geht's nicht!
  ...
  } ;

1b.) In Abwandlung von 1a): Wie mache ich zwei template-Klassen zu  
Freunden, die unterschiedliche template-Argumente besitzen?

  template<class T1, class T2>
  class A
  { ... } ;

  template<int T3>
  class B
  {
  template<class T1, class T2> friend class A ; // so auch nicht!
  } ;


Vielleicht kann mir jemand weiterhelfen.

        Thomas Arend
        ta@couch.ping.de
        arend@blasius.chemietechnik.uni-dortmund.de


  -------------------------------------------------------------------
Thomas Arend      arend@blasius.chemietechnik.uni-dortmund.de  (office)
                  ta@couch.ping.de                             (private)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads