aboutsummaryrefslogtreecommitdiff
path: root/include/marisa/scoped-ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/marisa/scoped-ptr.h')
-rw-r--r--include/marisa/scoped-ptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/marisa/scoped-ptr.h b/include/marisa/scoped-ptr.h
index 63d7a3d..abf48d8 100644
--- a/include/marisa/scoped-ptr.h
+++ b/include/marisa/scoped-ptr.h
@@ -16,7 +16,7 @@ class scoped_ptr {
}
void reset(T *ptr = NULL) {
- MARISA_THROW_IF((ptr != NULL) && (ptr == ptr_), MARISA_RESET_ERROR);
+ MARISA_DEBUG_IF((ptr != NULL) && (ptr == ptr_), MARISA_RESET_ERROR);
scoped_ptr(ptr).swap(*this);
}