I recently purchased some code that I want to connect to Linux. However, in the header file, I have a curious code that I hope someone can shed some light on. Inside the header file inside the namespace where other classes are defined, I have the following:
private: \
friend class Singleton<c>; \
virtual ~
I understand that it’s a ##marker insertion operation, but I can’t understand why the original author used it (which I don’t know and can’t contact). I have an implementation class that looks like this:
class MapManager : public Singleton<MapManager> {
CREATE_SINGLETON_METHODS(MapManager)
private:
...
When compiling, I get the following error:
error: pasting ";" and "MapManager" does not give a valid preprocessing token
This compilation is found on Windows and some earlier versions of gcc (pre 4.x). Any ideas on what could be happening here? Thanks!
bozemblem
source
share