
24 Aug
2007
24 Aug
'07
11:09 p.m.
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? Sohail