From 647b604fb0d68d9921e1457ebaaf70a244e22d81 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Feb 2015 16:17:00 +0200 Subject: Add explicit template argument to lazy_ptr::object_id() call VC++11 does not support default function template arguments. --- common/view/olv/driver.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/view/olv/driver.cxx b/common/view/olv/driver.cxx index b6483eb..f378f84 100644 --- a/common/view/olv/driver.cxx +++ b/common/view/olv/driver.cxx @@ -261,14 +261,16 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); view1a v (db->query_value ()); - assert (v.o1->n == 123 && v.o1->o2.object_id () == o2->id); + // VC11 + assert (v.o1->n == 123 && v.o1->o2.object_id () == o2->id); t.commit (); } { transaction t (db->begin ()); view1b v (db->query_value ()); - assert (v.o1->n == 123 && v.o1->o2.object_id () == o2->id); + // VC11 + assert (v.o1->n == 123 && v.o1->o2.object_id () == o2->id); t.commit (); } @@ -292,14 +294,16 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); view2a v (db->query_value ()); - assert (v.o3->n == 123 && v.o3->o4.object_id () == o4->id); + // VC11 + assert (v.o3->n == 123 && v.o3->o4.object_id () == o4->id); t.commit (); } { transaction t (db->begin ()); view2b v (db->query_value ()); - assert (v.o3->n == 123 && v.o3->o4.object_id () == o4->id); + // VC11 + assert (v.o3->n == 123 && v.o3->o4.object_id () == o4->id); t.commit (); } } -- cgit v1.1