
14 Jan
2013
14 Jan
'13
7:14 a.m.
On Mon, Jan 14, 2013 at 11:09 AM, Antony Polukhin <antoshkka@gmail.com> wrote:
2013/1/13 Vicente J. Botet Escriba <vicente.botet@wanadoo.fr>:
This would make less efficient the get operation. I would prefer to force the boost::blank default construction.
I see no big difference between "BOOST_ASSERT(p_);" and "if (p_) p_ = new T;" except default construction requirement for T.
The assert will be removed in release builds, so the difference exists. Also, this makes get() a potential source of exceptions which is a breaking change and counter-intuitive. +1 for not making such a change.