aboutsummaryrefslogtreecommitdiff
path: root/odb/database.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/database.hxx')
-rw-r--r--odb/database.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/database.hxx b/odb/database.hxx
index 5ec98a7..f24e0fa 100644
--- a/odb/database.hxx
+++ b/odb/database.hxx
@@ -19,6 +19,7 @@
#include <odb/exceptions.hxx>
#include <odb/details/export.hxx>
+#include <odb/details/meta/remove-const.hxx>
namespace odb
{
@@ -159,7 +160,7 @@ namespace odb
template <typename T>
result<T>
- query (const odb::query<typename object_traits<T>::object_type>&,
+ query (const odb::query<typename details::meta::remove_const<T>::result>&,
bool cache = true);
// Native database statement execution.
@@ -208,6 +209,9 @@ namespace odb
void
erase_ (const typename object_traits<T>::pointer_type&);
+ template <typename T, class_kind kind>
+ struct query_;
+
private:
database (const database&);
database& operator= (const database&);