Boost logo

Boost :

Subject: Re: [boost] [Boost.utility]
From: Andrew Chinkoff (achinkoff_at_[hidden])
Date: 2010-01-26 04:47:20

> Perhaps some boost::global<T> utility would be better, but a singleton
> itself is bad practice, in my opinion. boost::global<T> would merely
> create
> a global access point to T:
> typedef boost::global<int> global_Int;
> global_int.get() = 5; // getting the global int

Perhaps you're right. It is a matter of taste.
But I like to write "Object::Instance().get()" rather than

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at