Hi there,

I created a class COcVector, which contains standard constructor with one argument and copy constructor; There is not a constructor without any arguments, but when I tryied to use instances of that class in another class as a protected member variables, following error occured:

error C2059: Syntaxfehler : 'constant'
( syntax error)

Siehe Verweis auf Instantiierung der kompilierten Klassenvorlage 'COcPMatrix<T>'
( see reference of compiled template)

I don't know hwether my translation is correct, but maybe the code will make it clear:

problem class:

template < class T>
class COcPMatrix : public COcMatrix < T>{
public:
COcPMatrix() : COcMatrix < T> ( 3, 4){}
~COcPMatrix(){}

protected:

COcVector < T> _origin( 2); // this line causes an error mentioned above
};

used class:
template < class T>
class COcVector {

public:

COcVector( int dim){} // standard constructor
COcVector( const COcVector< T> & v){} // copy constructor
~COcVector(){}
};

Any help greatly appreciated!
carnaz