Topic: What does WP say about this?
Author: neal@ctd.comsat.com (Neal Becker)
Date: 1995/12/19 Raw View
I found (accidentally) what appears to work for a 2-dimensional
vector:
template<class T> class V {
private:
vector< vector<T> > m_vector;
int _Size;
public:
V(int Size, int Depth) : _Size(Size), m_vector (Size, vector<T>(Depth)) {}
[...]
I can't find any justification for the m_vector constructor call in
the working paper. Any hints?
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]