From 00717f21b8111f4f309f07077bcd36e15b9beac6 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 2 May 2014 00:49:18 -0700 Subject: [PATCH] Resolve 'dying from an unhandled exception: c' CbcPointer<> is used from code outside of Job protection where it is safe to use Must(). In order to get a useful backtrace we need to assert immediately at the point of failure. Particularly necessary since these are in generic operators used "everywhere" in the code. --- src/base/CbcPointer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/CbcPointer.h b/src/base/CbcPointer.h index 51c86b125e..3bed8db2aa 100644 --- a/src/base/CbcPointer.h +++ b/src/base/CbcPointer.h @@ -135,7 +135,7 @@ Cbc & CbcPointer::operator *() const { Cbc *c = get(); - Must(c); + assert(c); return *c; } @@ -144,7 +144,7 @@ Cbc * CbcPointer::operator ->() const { Cbc *c = get(); - Must(c); + assert(c); return c; } -- 2.47.2