Mail Archives: djgpp/1998/11/25/06:00:22
I've got a HUGE problem ...
I use to work under BORLAND C/C++, and i don't understand why this code don't
work under DJGPP.
I didn't find any answer in the FAQs and i'm new in this forum, so forgive me
if you had already answer this problem.
Any Help will be appreciate...
=========================
template <class X> class foo
{
X Data;
public:
foo() : Data() {}
};
class noth
{
public:
noth() {}
};
main( int , char**[], char *[])
{
foo<noth> foo1[3];
foo<int> foo2[3];
return 0;
}
=========================
Borland C++ compil it well with NO warning (All Warnig options : On).
GCC give me the error :
In method `foo<int>::foo()':
incomplete initializer for member `foo<int>::Data' of class `foo<int>' which
has no constructor
KAMY.
- Raw text -