From 1dc0e3c296c52b3537e43ce9d1fc5ac62776e992 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 Oct 2012 14:38:50 +0200 Subject: Add workaround for VC++ --- common/prepared/driver.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/common/prepared/driver.cxx b/common/prepared/driver.cxx index fc74e24..ba92285 100644 --- a/common/prepared/driver.cxx +++ b/common/prepared/driver.cxx @@ -283,13 +283,15 @@ main (int argc, char* argv[]) "person-params-query-2", [] (const char* name, connection& c) { - auto_ptr p (new params); - prepared_query pq ( - c.prepare_query ( - name, - query::age > query::_ref (p->age) && - query::name != query::_ref (p->name))); - c.cache_query (pq, p); + typedef odb::query query; + + auto_ptr p (new params); + prepared_query pq ( + c.prepare_query ( + name, + query::age > query::_ref (p->age) && + query::name != query::_ref (p->name))); + c.cache_query (pq, p); }); for (unsigned int i (1); i < 6; ++i) -- cgit v1.1