See below:

09.05.2011 11:45, Grégoire Badoual пишет:
namespace AS
{
        /**
         *  @class CVector2
         *
         *  @brief This class represents a vector with 2 components and its
main operations
         */
     template<class T>
     class CVector2
     {
     public :

        template<class T>  CVector2<T>::CVector2(T _X, T _Y);

The above declaration is wrong, it should be simply:

CVector2(T _X, T _Y);

All the other stuff is not needed: while inside the declaration of class CVector2, the compiler already know that: 1) it's a class template 2) T is a template parameter, and is a class.

http://www.codersource.net/c/c-tutorial-on-templates/c-class-templates.aspx

That being said, this is a question possibly for android-ndk, or preferably for some C++ forum or mailing list.

-- Kostya

     };

     template<class T>
                inline CVector2<T>::CVector2(T _X, T _Y) :
                X(_X),
                Y(_Y)
                {

                }

} /* namespace AS */



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to