diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-08 15:47:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-08 15:47:02 +0200 |
commit | f0f3a9c838acbef3131633bd2fd3f1e0571a9f3e (patch) | |
tree | 49a027c39862ecb1e2a34924e0967c0b2b0b9c93 | |
parent | f040f28940c3d9d29f1ba3ff6280a98433012351 (diff) |
Fix incorrect vector indexes
-rw-r--r-- | common/bulk/driver.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/bulk/driver.cxx b/common/bulk/driver.cxx index f1b624e..a6ae973 100644 --- a/common/bulk/driver.cxx +++ b/common/bulk/driver.cxx @@ -1115,9 +1115,9 @@ main (int argc, char* argv[]) std::vector<object> v (fill<object> (4)); v[0].id = 1; - v[2].id = 2; - v[3].id = 3; - v[4].id = 4; + v[1].id = 2; + v[2].id = 3; + v[3].id = 4; // persist @@ -1133,9 +1133,9 @@ main (int argc, char* argv[]) v[3].v != 0); //cerr << v[0].v << endl - // << v[0].v << endl - // << v[0].v << endl - // << v[0].v << endl; + // << v[1].v << endl + // << v[2].v << endl + // << v[3].v << endl; } // update |