John Levon <[EMAIL PROTECTED]> writes: | What is the standard way to get around the icky std::map requirement | that the value object have a default ctor ? This is forcing me to not | only havea pointless default no-argument ctor, but stop using references | in the struct value for no good reason :(
If you use references as class variables, then you will be hampered when trying to put it in a stl::container... You could do as they do in the stl and take a reference are, but store the pointer. We should probably introduce a new smartpointer for that then. held_ptr<> perhaps. A pointer that we should do nothing with when we go out of scope. -- Lgb