Issue With Inherited Template Class

closed account (zb0S216C)
General.h
1
2
3
4
5
6
7
8
9
10
11
template < typename __IndexType__ > class ParentControlledIndex
{
    // Member declarations.
};

class ControlledIndex : public ParentControlledIndex < short >
{
    public:
        ControlledIndex( void );
        void vCast( const NUMERICAL_TYPE &eType );
};

General.inl
1
2
3
4
// Definitions...
void ControlledIndex::vCast( const NUMERICAL_TYPE &eType ) // Error points here.
{
}


When I try to define vCast( ), I get this error:
Error: Function 'vCast' cannot be defined in the current scope.
It also gives me this error when I try to define the constructor of ControlledIndex.

Thoughts?

Notes:
NUMERICAL_TYPE is an enum structure.


Wazzak
closed account (zb0S216C)
Never mind. With vCast( ) being a member of a non-template class, defining it within an Inline File causes the error above.

Wazzak
Topic archived. No new replies allowed.