In addition to removing the 2-stage construction (see other thread) I'd
like to further simplify the Connection by using the initialisation list
in the default constructor:
Connection::Connection()
: m_bLocked(new bool(false)), m_bSuccess(new bool(false))
// etc. etc.
{ }
The copy ctor and assignment operator should be OK using the
compiler-generated one, rather than explicitly defining it, as all
members are builtins or types with correct destructors.
All comments welcome, especially if I've missed some reason this won't
work!
jon
--
"There is nothing noble in being superior to your fellow men -
true nobility is being superior to your former self."
- www.radiohead.com
|