aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-31 16:48:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-31 16:48:36 +0200
commitb6a0a7091ab7db75b84f101f96d8b38d5f781990 (patch)
tree64d10526db755c5935d2885253c6a2e3a6e932ef
parent37f5dcb1d34205aa4a395c1e21e853e363fd7f12 (diff)
Minor optimization
-rw-r--r--odb/sqlite/traits.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/sqlite/traits.cxx b/odb/sqlite/traits.cxx
index 96e201d..62093e9 100644
--- a/odb/sqlite/traits.cxx
+++ b/odb/sqlite/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);
}
}
}