Solved

Solved, thanks
Last edited on
All ok
Last edited on
For STL-containers like <array> or <vector> you may find some examples at http://www.cplusplus.com/reference/stl/.

To fit your needs you may f.e. declare

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <vector>
using std::vector;

template <class ItemType>
    class Array1D : public vector<ItemType>
    {
    public:
        unsigned int dim() const
        {
            return vector<ItemType>::size();
        }
        // ...
    } /* Array1D */;

template <class ItemType>
    class Array2D : public Array1D<Array1D<ItemType> >
    {
    } /* Array2D */;


Enhance code to your needs.
Thanks, problem solved
Don't remove your posts after you get an answer. It's a dick move.
Original post (too long for one message): http://pastebin.com/Z3FN2F7A
Topic archived. No new replies allowed.