aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/traits.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/mysql/traits.cxx b/odb/mysql/traits.cxx
index 38cffa8..7b901c5 100644
--- a/odb/mysql/traits.cxx
+++ b/odb/mysql/traits.cxx
@@ -74,7 +74,7 @@ namespace odb
// std::vector::data() may not be available in older compilers.
//
if (n != 0)
- memcpy (b.data (), &v[0], n);
+ memcpy (b.data (), &v.front (), n);
}
}
}