Problems using Matrix Type in class definition with MSVC 6.0

[email protected] 05 Jul 2004 13:32:57 UT
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Hi,

please check out the following code sample which results in the compiler error 

error C2059: Syntaxerror : 'constant'  

pointing to the line where the Matrix A ist generated.

I am the opposite of an expert in c++, so it might be that its just something really stupid.
Thanks in advance and best regards!

Timo


#include <stdio.h>
#include <fstream.h>
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#pragma warning (disable: 4786)


#include <mtl/matrix.h>
#include <mtl/mtl.h>
#include <mtl/utils.h>

using namespace mtl;

typedef matrix< double, rectangle<>, dense<>, row_major>::type Matrix;

//main
class KoPoint
{
public:
 Matrix A(3,3);
};

KoPoint Point;
void main()
{
}


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