From 42fee52342964c689be0e48bed07637be2fb45c1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Dec 2012 14:31:22 +0200 Subject: Don't use 0 to initialize std::function This doesn't work on VC++ 11. --- common/prepared/driver.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/prepared/driver.cxx b/common/prepared/driver.cxx index ba92285..1b4ad0e 100644 --- a/common/prepared/driver.cxx +++ b/common/prepared/driver.cxx @@ -248,7 +248,8 @@ main (int argc, char* argv[]) t.commit (); } - db->query_factory ("person-params-query", 0); + db->query_factory ("person-params-query", + database::query_factory_type ()); } // Cached query with wildcard factory. @@ -272,7 +273,7 @@ main (int argc, char* argv[]) t.commit (); } - db->query_factory ("", 0); + db->query_factory ("", database::query_factory_type ()); } // Cached query with lambda factory. @@ -310,7 +311,8 @@ main (int argc, char* argv[]) t.commit (); } - db->query_factory ("person-params-query-2", 0); + db->query_factory ("person-params-query-2", + database::query_factory_type ()); } #endif -- cgit v1.1