From bcd246076540a8353fa55fc0a5e19343c1a2dbc9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 14 Aug 2015 13:03:08 +0200 Subject: Implement package search service mockup --- brep/shared-database.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'brep/shared-database.cxx') diff --git a/brep/shared-database.cxx b/brep/shared-database.cxx index fb952d8..fc17659 100644 --- a/brep/shared-database.cxx +++ b/brep/shared-database.cxx @@ -10,14 +10,14 @@ #include using namespace std; -using namespace odb; namespace brep { - shared_ptr - shared_database (const string& host, unsigned int port) + shared_ptr + shared_database (const string& h, unsigned int p) { - static weak_ptr db; + using odb::pgsql::database; + static weak_ptr db; // In C++11, function-static variable initialization is // guaranteed to be thread-safe, thought this doesn't -- cgit v1.1