🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bob White Mon, 25 Mar 1996 16:43
Opinion on List & Namespace Problem Needed
#3793
Author: 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                             ]
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