S
ScOe
when i try to initialize container i receive compiler error:
[Linker Error] Unresolved external 'TVecArray<int>::create()' referenced
from C:\- DEVELOP -\C++ BUILDER PROJECTS\IGRICE\IM_WIN\FORMMAIN.OBJ
TVecArray<int> test;
what did i do wrong ?
I'm using BCB5
code snipet:
template <class T> class TVecArray
{
public:
....
TVecArray () {create ();}
....
private:
iterator data;
iterator limit;
iterator avail;
std::allocator<T> alloc;
void create ();
....
};
template <class T> void TVecArray<T>::create ()
{
data = avail = limit = 0;
}
[Linker Error] Unresolved external 'TVecArray<int>::create()' referenced
from C:\- DEVELOP -\C++ BUILDER PROJECTS\IGRICE\IM_WIN\FORMMAIN.OBJ
TVecArray<int> test;
what did i do wrong ?
I'm using BCB5
code snipet:
template <class T> class TVecArray
{
public:
....
TVecArray () {create ();}
....
private:
iterator data;
iterator limit;
iterator avail;
std::allocator<T> alloc;
void create ();
....
};
template <class T> void TVecArray<T>::create ()
{
data = avail = limit = 0;
}