1
edit
Changes
→C/C++ FAQ
<br><br>
'''Q:''' When creating the header file for a template class and putting the implementation in the header as well there are no errors. However when splitting the deceleration (header) and implementation (making a cpp file) for that class template there are numerous compile errors. What do all these errors mean?
Possible errors:
arrayWrong.cpp:6:1: error: invalid use of template-name 'Array' without an argument list
arrayWrong.cpp:12:1: error: invalid use of template-name 'Array' without an argument list
arrayWrong.cpp:24:1: error: invalid use of template-name 'Array' without an argument list
arrayWrong.cpp:30:1: error: invalid use of template-name 'Array' without an argument list
arrayWrong.cpp:46:14: error: 'template<class T> class Array' used without template parameters
<br>
*comment (pliu): Could you please post up the source code and the listing of compiler error messages please? <br>