diff options
Diffstat (limited to 'odb/result.hxx')
-rw-r--r-- | odb/result.hxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/odb/result.hxx b/odb/result.hxx index 93c0dce..5f84342 100644 --- a/odb/result.hxx +++ b/odb/result.hxx @@ -209,6 +209,23 @@ namespace odb return impl_ ? impl_->size () : 0; } + // query_one() and query_value() implementation details. + // + public: + typename object_traits<T>::pointer_type + one (); + + bool + one (T&); + + // We cannot return by value here since result can be instantiated + // for an abstract type (polymorphic abstract base) and it seems + // the signature must be valid to the point being able to call the + // necessary constructors. + // + void + value (T&); + private: friend class result<const T>; @@ -222,6 +239,8 @@ namespace odb } } +#include <odb/result.txx> + #include <odb/post.hxx> #endif // ODB_RESULT_HXX |