I have a class called AbstractRManagers which i would like to inheritent from a singleton template class Singleton but the abstractRmanager needing to be a template class I have come across some strange error codes that provide no use, Ive tried looking it up but to no luck.
template <class Type>
class AbstractRManagers : public Singleton<AbstractRManagers>
{
error C3203: ‘AbstractRManagers’ : unspecialized class template can’t
be used as a template argument for template parameter ‘Type’, expected
a real type
AbstractRManagersnames a template, which isn’t a type — it has to have a template parameter give to become a type. At least if I understand what you want, you probably need something like:…which starts to look suspiciously CRTP-like.
Then the obligatory note: chances are pretty good that you don’t really need or want a singleton here (or nearly anywhere).