oh im sorry, i was referring to my first method. anyways, i did not write main(where the function call is made), nor can i alter it. it is passing the array:
(ex)
ListItem<Fruit> items[5];...
Type: Posts; User: mikehess
oh im sorry, i was referring to my first method. anyways, i did not write main(where the function call is made), nor can i alter it. it is passing the array:
(ex)
ListItem<Fruit> items[5];...
nope, doesnt work when linking object files. let me try to be more clear what im trying to do.
i need to pass an array of templated objects ListItem<T>. declaration looks like this (for example):...
good call with the array reference. i retried
template <class T>
void PrintList( ItemList<T> & list[] ) without the reference:
void PrintList( ItemList<T> list[] )
and it compiles. thanks...
Hello, im trying to create a function which recieves an array (by reference) of templated objects but i am unsure of the syntax. ive tried the following, none work
(ex)
template <class T>
void...