I am currently using Version 10.6.1830.0 with Visual Studio 2010 Ultimate
your example is working in my environment
but it fails if you put the singleton in a namespace, like this:
namespace Foobar
{
class singleton
{
public:
static singleton* gObject;
static singleton* Get() {return gObject;}
};
}
void func()
{
Foobar::singleton::Get()->CreateNewMethod();
}
Now "Create from Usage" doesn't working. Sorry I forgot to mention, that the singleton resides in a namespace.