aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-08-29 10:34:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-08-29 10:34:24 +0200
commitf6cd1a2e15d878cdce50cb75b448898efa769f62 (patch)
treef114e52ea2ffe5c89fa0ce2625f7cc00f7ad8945
parent7a9f5f75d9fe0a7281b9d68de83f66ca9a7623c1 (diff)
Use default-initialized value instead of 0
0 doesn't work for enum classes.
-rw-r--r--odb/oracle/traits.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/oracle/traits.hxx b/odb/oracle/traits.hxx
index f3e27ba..4208253 100644
--- a/odb/oracle/traits.hxx
+++ b/odb/oracle/traits.hxx
@@ -455,7 +455,7 @@ namespace odb
if (!is_null)
v = static_cast<T> (details::number_to_int64 (b, n));
else
- v = 0;
+ v = T ();
}
static void
@@ -475,7 +475,7 @@ namespace odb
if (!is_null)
v = static_cast<T> (details::number_to_uint64 (b, n));
else
- v = 0;
+ v = T ();
}
static void