🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3793

Opinion on List & Namespace Problem Needed

#3793
From: Bob White
Date: Mon, 25 Mar 1996 16:43
43 lines
1663 bytes
I am using Borland C++ v5.00 with patch 1 applied with the following program:

#include	<list>
class	xyz : public std::list<int> {
	int	zz;
}

int		main(
) {
	xyz		Abc;
}

My interpretation of the new standard is that this should work, but it 
doesn't.  I get errors on undefined routine for each of the routines which are 
declared within class list, but implemented outside of the class definition 
for example:

namespace std {

Template<class CharT>
class	list {
	int	xyz();
}

template<class CharT>
int	list::xyz()
{
}

}

My opinion is that this is reasonable syntax.  Am I wrong or should I report 
it as a bug?  Thank you for your assistance.

				Bob



[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Technical Details
Message-ID: <4j6i59$3s7@nnrp1.news.primenet.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!usenet
From: kj7bg@primenet.com (Bob White)
Newsgroups: comp.std.c++
Subject: Opinion on List & Namespace Problem Needed
Date: 25 Mar 1996 16:43:25 GMT
Organization: Primenet Services for the Internet
Sender: root@primenet.com
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <4j6i59$3s7@nnrp1.news.primenet.com>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: Text/Plain; charset="US-ASCII"
X-Posted-By: ip181.boi.primenet.com
X-Newsreader: WinVN 0.99.7
X-Lines: 36
Content-Length: 661