From f05b0f063942a65f7a9c04609b9e5b7aa3b6a89c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Feb 2013 13:07:36 +0200 Subject: Account for C++11 compilers without default function template arguments --- common/session/custom/driver.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/session/custom/driver.cxx b/common/session/custom/driver.cxx index 2baa122..ab111b2 100644 --- a/common/session/custom/driver.cxx +++ b/common/session/custom/driver.cxx @@ -14,6 +14,7 @@ #include #include #include +#include // ODB_CXX11_* #include @@ -88,7 +89,11 @@ main (int argc, char* argv[]) transaction t (db->begin ()); st = db->load ("Simple Tech Ltd"); +#ifdef ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT ste = db->load (st->employees ()[0].object_id ()); +#else + ste = db->load (st->employees ()[0].object_id ()); +#endif // Test object cache. // @@ -103,7 +108,11 @@ main (int argc, char* argv[]) transaction t (db->begin ()); cs = db->load ("Complex Systems Inc"); +#ifdef ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT cse = db->load (cs->employees ()[0].object_id ()); +#else + cse = db->load (cs->employees ()[0].object_id ()); +#endif cs->employees ()[0].load (); t.commit (); -- cgit v1.1