I am currently trying to write a basic cover for the cml () math library, on which I am working. I have a cover for the CML vector class which has a personal member
#ifndef VECTOR3_H_ #define VECTOR3_H_ #include "cml \ cml.h" #include & lt; Memory & gt; Nameshola Math {Template & lt; Typename T & gt; Square vector 3 {public: vector 3 (zero) vector 3 (t x, t, t z); ~ Vector3 () {}; // @ function: set // @ Description: Set vector internally // @ parameter: 3 values x, y, z zeros set (T x, TY, TZ); Private: // ---------------------------------------------- -------------- // Copy Constructor and Assignment Operator Private Vector 3 (Cunt Vector 3 & A); should be there; Vector3 & amp; Operator = (arc vector 3 & amp;;); // ------------------------------------------------ ------------- std :: auto_ptr & lt; Cml :: vector & lt; T, cml :: fixed & lt; 3, -1 & gt; & Gt; * M_internalVector; }; } (Note: I have left the implementation of constructors to keep the size down)
And in other files I use some words to make my word easier
// Vector Typing Math: Vector 3 & lt; Float & gt; Vector3f; // typed cml :: vector2f vector 2f; Typedef Math :: Vector 3 & lt; Int & gt; Vector3i; // typed cml :: vector2i vector 2i; Now my problem occurs when I try to use Vector3f
Vector3f forward (0.0f, 0.0f, 1.0f); And I get an error:
"No examples of constructor math :: vector 3 :: vector 3 [t = with float] ' Mail logic list "
I tried to convert from You have lost (but accept me I thought that this is just a typo of the question, not necessarily the real cause of the problem.) auto_ptr to regular pointer, even if it was an issue with templating, even when #define And the same problem happens, am I missing something here because I can see that manufacturer in my implementation. < vector 3 (zero) after the creator