Original Post
Hi folks, I am trying to implement a template driven resource manager. I've got sample sources from Sam Lantinga and are about to change some things. Unfortunately these changes produce some warning I didn't get rid of yet, maybe you've got an idea: A little code-snippet As you can see, I am referencing the template class within the Cache struct which I am trying to create an stl vector of. My compiler now is concerned about that vector statement and says that implicit typenames are deprecated: [Warning] implicit typename is deprecated, please see the documentation for details But whatever I did to that statement, I was not able to resolve this problem. Does anyone of you know the solution? Regards, T.
template<class T> class CResourceCache
{
public:
CResourceCache( void )
{
m_vCache.clear();
}
protected:
typedef struct Cache
{
string strName;
T *data;
};
vector<Cache> m_vCache;
};