Search:

Type: Posts; User: mtbusche

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    1,459

    Thank you all for your attempts to help me. ...

    Thank you all for your attempts to help me. Again, I apologize for the gross errors in my original code sketch. Although I asked for folks to see past them they seem to be a point of great...
  2. Replies
    11
    Views
    1,459

    Mats, Uhmm...yeah...I definitely don't want to...

    Mats,

    Uhmm...yeah...I definitely don't want to store the lists by value. Should be more like:



    class FruitStore
    {
    private:
    vector<vector<Fruit&>&> shelves;
  3. Replies
    11
    Views
    1,459

    Upcasting of templatized types.

    Suppose you have classes Apple, Orange and Pear that all inherit from a base class Fruit. And suppose your software has modules that work with vector<Apple>, vector<Orange> and vector<Pear>. Now...
Results 1 to 3 of 3