Topic: Opinion on List & Namespace Problem Needed


Author: kj7bg@primenet.com (Bob White)
Date: 1996/03/25
Raw View
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                             ]