From d5fb4a771a99ab543d62ed15f0a0eeefab1762a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Feb 2011 10:42:41 +0200 Subject: Add odb::core namespace to be used in using-directives Port all the examples and tests. --- container/database.hxx | 6 +++--- container/driver.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'container') diff --git a/container/database.hxx b/container/database.hxx index c72f320..6e4c1e7 100644 --- a/container/database.hxx +++ b/container/database.hxx @@ -24,7 +24,7 @@ inline std::auto_ptr create_database (int& argc, char* argv[]) { using namespace std; - using namespace odb; + using namespace odb::core; if (argc > 1 && argv[1] == string ("--help")) { @@ -32,14 +32,14 @@ create_database (int& argc, char* argv[]) << "Options:" << endl; #if defined(DATABASE_MYSQL) - mysql::database::print_usage (cerr); + odb::mysql::database::print_usage (cerr); #endif exit (0); } #if defined(DATABASE_MYSQL) - return auto_ptr (new mysql::database (argc, argv)); + return auto_ptr (new odb::mysql::database (argc, argv)); #endif } diff --git a/container/driver.cxx b/container/driver.cxx index 109fec0..23ceff6 100644 --- a/container/driver.cxx +++ b/container/driver.cxx @@ -14,7 +14,7 @@ #include "person-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; void print (const person& p) -- cgit v1.1