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?
Has partial Template Specialisation Arrived in VS2005?
Try
This change is well documented. See Breaking Changes in the Visual C++ 2005 Compiler.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement