Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-08-24 19:09:49

Tobias Schwinger wrote:
> Robert Ramey wrote:
>> f) can "const" static objects be created?
> I'm not sure I've tried, yet.
> What would it be good for (as it doesn't make a difference if the
> singleton instance is immutable and it would yield inaccessible code if
> it wasn't)?
Say you need to set up a map of string to function pointer (or some
silliness like that). After construction, such a thing should be const.
Or is that not what you understood from the question?


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