I'm using the singleton object and it seems to work perfectly when I call the instance from within the class where I have the type definition and also from main(). However, when I try to call the instance from another of my files (any other file) I have the following compiler error:
el.h:31: error: ‘NManager’ has not been declared
where NManager is declared as follows
typedef Loki::SingletonHolder< NManagerImpl<NBase, std::string > > NManager;
It doesn't if I #include the file where the typedef is. Does anyone knows why is this? Thank you all,
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.