aboutsummaryrefslogtreecommitdiff
path: root/brep/shared-database.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-16 20:02:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-25 20:35:10 +0200
commit2700ed6a3e1092a064f28b07f8e2c4e5b9b830e7 (patch)
treea54ffc979dde42e609bc9877120fa010887c6b66 /brep/shared-database.cxx
parent48a3c47d34c2acc0a39e2db5acfd437dace499c1 (diff)
Implement new URL path schema for the web interface
Diffstat (limited to 'brep/shared-database.cxx')
-rw-r--r--brep/shared-database.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/brep/shared-database.cxx b/brep/shared-database.cxx
index fc17659..c1d128f 100644
--- a/brep/shared-database.cxx
+++ b/brep/shared-database.cxx
@@ -4,12 +4,12 @@
#include <brep/shared-database>
-#include <memory> // weak_ptr, shared_ptr, make_shared()
#include <stdexcept> // runtime_error
#include <odb/pgsql/database.hxx>
-using namespace std;
+#include <brep/types>
+#include <brep/utility>
namespace brep
{
@@ -27,7 +27,7 @@ namespace brep
if (shared_ptr<database> d = db.lock ())
{
if (h != d->host () || p != d->port ())
- throw runtime_error ("shared database host/port mismatch");
+ throw std::runtime_error ("shared database host/port mismatch");
return d;
}