diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-13 13:37:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-13 13:37:36 +0200 |
commit | b9376a8bd73d12c868dafa2d1f686058a77d35be (patch) | |
tree | 0d0a360dbabab4bf8bbfffce04388fc035901c86 /odb/query.hxx | |
parent | 85a83a8bd8b8d1e98ba68e1daba1af4f212a9aa3 (diff) |
Let the DB implementation define a specialization of query
Diffstat (limited to 'odb/query.hxx')
-rw-r--r-- | odb/query.hxx | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/odb/query.hxx b/odb/query.hxx index d52e1cc..56af84b 100644 --- a/odb/query.hxx +++ b/odb/query.hxx @@ -6,33 +6,13 @@ #ifndef ODB_QUERY_HXX #define ODB_QUERY_HXX -#include <string> - -#include <odb/forward.hxx> #include <odb/traits.hxx> namespace odb { - template <typename T> - class query: public object_traits<T>::query_type - { - public: - typedef typename object_traits<T>::query_type base_type; - - query () - { - } - - query (const std::string& q) - : base_type (q) - { - } - - query (const base_type& q) - : base_type (q) - { - } - }; + template <typename T, + typename Q = typename object_traits<T>::query_base_type> + class query; } #endif // ODB_QUERY_HXX |