|
-
April 8th, 1999, 03:44 AM
#1
Passing template class object as parameters
I have an object based on a template class. I can't nail the syntax required to pass that object as an argument to my function. Please can someone educate me.
---
CArray<int, int> arrayStaff();
GetStaffList(iID, arrayStaff);
...
void CReportExtension::GetStaffList(int iID, CArray<int, int> &arrayStaff)
---
D:\Projects\report\report.cpp(2023) : error C2664: 'GetStaffList' : cannot convert parameter 2 from 'class CArray<int,int> (void)' to 'class CArray<int,int> &'
Context does not allow for disambiguation of overloaded function
--
Daren Chandisingh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|