From 3a2c725246767c98d3e61d21292f049980572296 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 31 Jul 2011 16:48:09 +0200 Subject: Minor optimization --- odb/mysql/traits.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- cgit v1.1