
6 Oct
2011
6 Oct
'11
7:44 p.m.
on Thu Oct 06 2011, Olaf van der Spek <ml-AT-vdspek.org> wrote:
On Thu, Oct 6, 2011 at 8:50 PM, Dave Abrahams <dave@boostpro.com> wrote:
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.
assert() works only in NDEBUG builds. What options besides throwing does one have?
BOOST_ASSERT(). -- Dave Abrahams BoostPro Computing http://www.boostpro.com