Templates --> How to decipher, decide if necessary and create?
        Posted  
        
            by ML
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ML
        
        
        
        Published on 2010-04-13T22:42:08Z
        Indexed on 
            2010/04/13
            22:53 UTC
        
        
        Read the original article
        Hit count: 266
        
Hi All,
I have a few classes in a project that I inherited that are really old, last I knew they compiled with CodeWarrior 8. I am not in XCode 3.2
Here is an example of what I struggle with:
template <class registeredObject> 
typename std::vector<registeredObject>::iterator FxRegistry<registeredObject>::begin(void)
{
    return mRegistryList.begin();
}
The errors are:
no 'typename std::vector<registeredObject, std::allocator<_CharT> >::iterator FxRegistry<registeredObject>::begin()' member function declared in class 'FxRegistry<registeredObject>'
template definition of non-template 'typename std::vector<registeredObject, std::allocator<_CharT> >::iterator FxRegistry<registeredObject>::begin()'
How do I decide how to solve these and where do I start looking?
© Stack Overflow or respective owner