M
MikeWhy
In context of the recent discussion of lazy initialization of singletons and
DCLP, is the behavior of the following safe, undefined, or unsafe?
class Foo {
....
protected:
Foo();
public:
static Foo & Instance()
{
static Foo singleton;
return singleton;
}
};
DCLP, is the behavior of the following safe, undefined, or unsafe?
class Foo {
....
protected:
Foo();
public:
static Foo & Instance()
{
static Foo singleton;
return singleton;
}
};