aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-19 11:22:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-19 11:22:50 +0200
commit376434fbe0a3a8a185e2fb6dcdabca97fe0379c1 (patch)
tree99a96b2b00c64ee4725944044e283ba521cf8763
parent2636e266dc7a048e52b40b668c460c2793e897c4 (diff)
Add default value (0) to reset
-rw-r--r--odb/details/shared-ptr.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/details/shared-ptr.hxx b/odb/details/shared-ptr.hxx
index 67b67df..6a9a640 100644
--- a/odb/details/shared-ptr.hxx
+++ b/odb/details/shared-ptr.hxx
@@ -121,7 +121,7 @@ namespace odb
}
void
- reset (X* x)
+ reset (X* x = 0)
{
if (x_ != 0)
base::dec (x_);