🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #468

instantiation of template - incomplete type

#468
From: Thorsten Gau
Date: Sun, 24 Sep 1995 11:55
36 lines
1178 bytes
Hallo,

ich habe Probleme mit folgendem Code. Der VisualAge C++ compiliert ihn ohne
Probleme, doch gcc 2.6.3 mag sowas gar nicht. Hilft mir da vielleicht ein
Upgrade auf 2.7.0 oder kann ich da irgendwie drumrum programmieren?

template<class T> class L
{
private:
   T data;

public:
   L() {}
};

class A
{
public:
   A() {}
   L<A> children();
};

tmplprob.cc:4: field `data' has incomplete type
tmplprob.cc:4:   in instantiation of template `L<A>'

Wäre toll, wenn Du per Mail antworten könntest.
Vielen Dank

	Thorsten


-- 
==============================================================================
Thorsten Gau --- Neu Wulmstorf, Germany --- VOICE: +49 40 / 700 52 96   * *
EMail: gau_t@gauhh.hanse.de / gau_t@informatik.fh-hamburg.de             |
2B or not 2B... gives FF    PGP-Key on demand !                        \___/
Technical Details
Message-ID: <DFErsG.6EK@gauhh.hanse.de>
Path: arc1-ca.pugleaf.net!gauhh.hanse.de!gau_t

Show Full Headers
Complete Article Headers
Newsgroups: de.comp.lang.c++
Path: arc1-ca.pugleaf.net!gauhh.hanse.de!gau_t
From: gau_t@gauhh.hanse.de (Thorsten Gau)
Subject: instantiation of template - incomplete type
X-Newsreader: TIN [version 1.2 PL2]
Organization: private LINUX-Site
Message-ID: <DFErsG.6EK@gauhh.hanse.de>
Date: Sun, 24 Sep 1995 11:55:28 GMT