[Dev-C++] templates in C++ : precisions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: erwan a. <erw...@fr...> - 2003-01-12 10:26:08
|
well, this is my problem:
I would like to make a template class that owns a set of elements that have
the type of one of the class parameters. And it doesn't compile...
example:
#include <set>
template <class T>
class A
{
public:
A();
B();
std::set<T> _list;
};
the compiler's output tells that the type T is not defined... Well, of
course, but it will be defined when the template will be instanciated. So it
should be possible...
Does anybody know a solution to my problem?
|