enkie
March 14th, 2002, 12:17 PM
Hello, everybody!
I'm trying to do some programming in VC6, and ran into the following problem. I made a CMatrix<template T> class, that does some simple matrix calculations. Now I defined a (normal) class, in which I wanted to use a couple of these CMatrix'es in the following way:
CMatrix<double> *a;
(in the definition)
and to use a new operator with the parameterisation on these pointers later.
The compiler gives loads of errors :
missing ';' before '<'
'CMatrix' missing storage class or type specifiers
syntax error '<'
unexpected tokens preceding ';'
To me this makes no sense. Is this kind of thing impossible? Can anybody please help me?
Henk
I'm trying to do some programming in VC6, and ran into the following problem. I made a CMatrix<template T> class, that does some simple matrix calculations. Now I defined a (normal) class, in which I wanted to use a couple of these CMatrix'es in the following way:
CMatrix<double> *a;
(in the definition)
and to use a new operator with the parameterisation on these pointers later.
The compiler gives loads of errors :
missing ';' before '<'
'CMatrix' missing storage class or type specifiers
syntax error '<'
unexpected tokens preceding ';'
To me this makes no sense. Is this kind of thing impossible? Can anybody please help me?
Henk