Search:

Type: Posts; User: mikehess

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,092

    oh im sorry, i was referring to my first method....

    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];...
  2. Replies
    7
    Views
    1,092

    nope, doesnt work when linking object files. let...

    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):...
  3. Replies
    7
    Views
    1,092

    good call with the array reference. i retried ...

    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...
  4. Replies
    7
    Views
    1,092

    passing an array of templated objects

    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...
Results 1 to 4 of 4