#include <boost/utility.hpp> // for boost::noncopyable
#include <functional> // for std::less
+#ifdef LYX_NO_EXCEPTIONS
+#include <assert.h>
+#endif
+
namespace boost {
// scoped_ptr --------------------------------------------------------------//
catch (...) { delete p; throw; }
#else
pn = new long(1);
+ assert(pn != 0);
#endif
}
} // catch
#else
pn = new long;
+ assert(pn != 0);
#endif
} // allocate new reference counter
*pn = 1;
catch (...) { delete [] p; throw; }
#else
pn = new long(1);
+ assert(pn != 0);
#endif
}
} // catch
#else
pn = new long;
+ assert(pn != 0);
#endif
} // allocate new reference counter
*pn = 1;