From 68b9f21868bf36f16ad131294da305b8718557bd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 31 Jul 2011 16:48:26 +0200 Subject: Minor optimization --- odb/pgsql/traits.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odb/pgsql/traits.cxx b/odb/pgsql/traits.cxx index 1c167b8..a2c2f2f 100644 --- a/odb/pgsql/traits.cxx +++ b/odb/pgsql/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