diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-16 20:02:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-25 20:35:10 +0200 |
commit | 2700ed6a3e1092a064f28b07f8e2c4e5b9b830e7 (patch) | |
tree | a54ffc979dde42e609bc9877120fa010887c6b66 /brep/shared-database | |
parent | 48a3c47d34c2acc0a39e2db5acfd437dace499c1 (diff) |
Implement new URL path schema for the web interface
Diffstat (limited to 'brep/shared-database')
-rw-r--r-- | brep/shared-database | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/brep/shared-database b/brep/shared-database index 36fa0a2..4d8186d 100644 --- a/brep/shared-database +++ b/brep/shared-database @@ -5,11 +5,10 @@ #ifndef BREP_SHARED_DATABASE #define BREP_SHARED_DATABASE -#include <string> -#include <memory> // shared_ptr - #include <odb/forward.hxx> // database +#include <brep/types> + namespace brep { // Returns pointer to the shared database instance, creating one on the @@ -17,8 +16,8 @@ namespace brep // to ones of the existing database instance throwing runtime_error // otherwise. Is not thread-safe. // - std::shared_ptr<odb::core::database> - shared_database (const std::string& host, unsigned int port); + shared_ptr<odb::core::database> + shared_database (const string& host, unsigned int port); } #endif // BREP_SHARED_DATABASE |