Has partial Template Specialisation Arrived in VS2005?

Started by
1 comment, last by gimp 18 years, 4 months ago


template <typename ResourceType, typename IOType> 

class CResourceManager : public Singleton<CResourceManager>

{

public:

The output from the compiler is as follows: c:\zzz\code\c++\game\source\common\resourcemanager.h(24) : error C3203: 'CResourceManager' : unspecialized class template can't be used as a template argument for template parameter 'T', expected a real type Is this no longer valid? If it is, it's a major shame as I used this technique to build all my in game resources from XML + factories. Is there an alternative I can use?
Chris Brodie
Advertisement
Try

template <typename ResourceType, typename IOType> class CResourceManager : public Singleton<CResourceManager<ResourceType, IOType> >


This change is well documented. See Breaking Changes in the Visual C++ 2005 Compiler.
[size=2]
Kind thanks, I've been out of coding for nearly 2 years looking after a baby \ rennovation. It's good to get back in to things. Thanks for the link I was looking for thiskind of information yesterday.
Chris Brodie

This topic is closed to new replies.

Advertisement