C++ Help, Declaraing a template as data type for parameter.
MyDynamicArray(const MyDynamicArray<V,CAP> &original);//copy constructor //Prototype
template <typename V, int CAP>
MyDynamicArray<V>::MyDynamicArray(constMyDynamicArray<V,CAP> &original) //Error: Too fewtemplate arguments for class template
{
//….
}
Error: Too few template arguments for class template
I am getting this error from this declaration constMyDynamicArray<V,CAP> &original. How do I declare itpreoperly ? I am using xcode. Thanks
Expert Answer
An answer will be send to you shortly. . . . .