resize method not compiling

"Adelle Hartley" <[email protected]> Mon, 24 Jul 2006 18:33:49 +1000
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Hi,

I am using Visual C++ 7.1.

I get an error when I attempt to use the resize method on a dense matrix.

My code looks like this:

  typedef mtl::matrix<int>::type Matrix;
  Matrix m;
  m.resize(5,5);

The error I am getting looks like this:

Them\mtl\dense2D.h(1230) : error C2059: syntax error : '::'
Them\mtl\dense2D.h(1231) : error C2589: '(' : illegal token on right side of
'::'

The alleged source of the error is in the following section of dense2D.h:

1227  inline void resize(size_type m, size_type n) {
1228    rep_ptr newdata = new reptype(Offset::size(m, n, 0, 0));
1229    size_type i, j;
1230    size_type M = MTL_MIN(m, super::offset.major());
1231    size_type N = MTL_MIN(n, super::offset.minor());

Any hints?

Adelle.

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/