aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-31 15:03:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-31 15:03:44 +0200
commit90377830e06d58a2dbe116ec002741181c9a1915 (patch)
tree3e2a5bb76fb6ab3b6247cb72725a9ddb4aa75288
parent1cb53f9850ed593d75b6e3af0454616b30048643 (diff)
Add default argument to shared_ptr::reset
-rw-r--r--cutl/shared-ptr.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cutl/shared-ptr.hxx b/cutl/shared-ptr.hxx
index 702af29..837ba4e 100644
--- a/cutl/shared-ptr.hxx
+++ b/cutl/shared-ptr.hxx
@@ -119,7 +119,7 @@ namespace cutl
}
void
- reset (X* x)
+ reset (X* x = 0)
{
if (x_ != 0)
base::dec (x_);