aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-31 16:48:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-31 16:48:26 +0200
commit68b9f21868bf36f16ad131294da305b8718557bd (patch)
treec5f80bcbe2738300f533d3e3a44812f04d15de3f
parent9abf73c8180e3664a71bac73629f67851c6c12da (diff)
Minor optimization
-rw-r--r--odb/pgsql/traits.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}