
26 Jan
2010
26 Jan
'10
9:47 a.m.
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 "global_object.get()". -- View this message in context: http://old.nabble.com/-Boost.utility--tp27309940p27320129.html Sent from the Boost - Dev mailing list archive at Nabble.com.