
6 Oct
2011
6 Oct
'11
6:50 p.m.
on Thu Oct 06 2011, Olaf van der Spek <ml-AT-vdspek.org> wrote:
On Thu, Oct 6, 2011 at 7:15 PM, Dave Abrahams <dave@boostpro.com> wrote:
on Thu Oct 06 2011, Ion Gaztañaga <igaztanaga-AT-gmail.com> wrote:
//! <b>Throws</b>: std::runtime_error if this' allocator and x's allocator //! are not equal.
Are you sure you want to make this defined behavior?
Wouldn't it be a logic_error? An assert seems more appropriate.
That's my point. IMO we shouldn't throw in response to conditions that are almost certainly programming errors. -- Dave Abrahams BoostPro Computing http://www.boostpro.com