aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-31 16:48:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-31 16:48:09 +0200
commit3a2c725246767c98d3e61d21292f049980572296 (patch)
tree1d1c7773373db6bae46ad5d14daf4e329fe20e14
parente8162bdac61ac49ae30cdfeae9f2bd3d230df809 (diff)
Minor optimization
-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);
}
}
}