From f6cd1a2e15d878cdce50cb75b448898efa769f62 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 29 Aug 2014 10:34:24 +0200 Subject: Use default-initialized value instead of 0 0 doesn't work for enum classes. --- odb/oracle/traits.hxx | 4 ++-- 1 file 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 (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 (details::number_to_uint64 (b, n)); else - v = 0; + v = T (); } static void -- cgit v1.1