From 4a250a49537bf223b3665c0f5a017944531b3dfe 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. --- common/auto/driver.cxx | 2 +- common/composite/driver.cxx | 2 +- common/const/driver.cxx | 2 +- common/container/driver.cxx | 2 +- common/ctor/driver.cxx | 2 +- common/inverse/driver.cxx | 2 +- common/lazy-ptr/driver.cxx | 2 +- common/lifecycle/driver.cxx | 2 +- common/query/driver.cxx | 2 +- common/relationship/driver.cxx | 2 +- common/schema/driver.cxx | 2 +- common/template/driver.cxx | 2 +- common/threads/driver.cxx | 3 ++- 13 files changed, 14 insertions(+), 13 deletions(-) (limited to 'common') diff --git a/common/auto/driver.cxx b/common/auto/driver.cxx index 4388bbf..9b863f8 100644 --- a/common/auto/driver.cxx +++ b/common/auto/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/composite/driver.cxx b/common/composite/driver.cxx index bf8e668..51e6a26 100644 --- a/common/composite/driver.cxx +++ b/common/composite/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/const/driver.cxx b/common/const/driver.cxx index b4eb80e..10e3103 100644 --- a/common/const/driver.cxx +++ b/common/const/driver.cxx @@ -20,7 +20,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/container/driver.cxx b/common/container/driver.cxx index b4f5b87..0705794 100644 --- a/common/container/driver.cxx +++ b/common/container/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/ctor/driver.cxx b/common/ctor/driver.cxx index c8e418f..23d2af1 100644 --- a/common/ctor/driver.cxx +++ b/common/ctor/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/inverse/driver.cxx b/common/inverse/driver.cxx index 26ead16..1f018e7 100644 --- a/common/inverse/driver.cxx +++ b/common/inverse/driver.cxx @@ -20,7 +20,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/lazy-ptr/driver.cxx b/common/lazy-ptr/driver.cxx index d03eaef..c40eb92 100644 --- a/common/lazy-ptr/driver.cxx +++ b/common/lazy-ptr/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; auto_ptr create (unsigned int id) diff --git a/common/lifecycle/driver.cxx b/common/lifecycle/driver.cxx index ae755a2..8328700 100644 --- a/common/lifecycle/driver.cxx +++ b/common/lifecycle/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/query/driver.cxx b/common/query/driver.cxx index 78f0bd4..6bef996 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; void print (result& r) diff --git a/common/relationship/driver.cxx b/common/relationship/driver.cxx index 637dfd0..cad17a0 100644 --- a/common/relationship/driver.cxx +++ b/common/relationship/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/schema/driver.cxx b/common/schema/driver.cxx index 344b4b6..b53464c 100644 --- a/common/schema/driver.cxx +++ b/common/schema/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/template/driver.cxx b/common/template/driver.cxx index 9386784..ad95809 100644 --- a/common/template/driver.cxx +++ b/common/template/driver.cxx @@ -19,7 +19,7 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; int main (int argc, char* argv[]) diff --git a/common/threads/driver.cxx b/common/threads/driver.cxx index 6c64736..212ff60 100644 --- a/common/threads/driver.cxx +++ b/common/threads/driver.cxx @@ -24,7 +24,8 @@ #include "test-odb.hxx" using namespace std; -using namespace odb; +using namespace odb::core; +namespace details = odb::details; const unsigned long thread_count = 32; const unsigned long iteration_count = 100; -- cgit v1.1