aboutsummaryrefslogtreecommitdiff
path: root/odb/details/buffer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/buffer.hxx')
-rw-r--r--odb/details/buffer.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/odb/details/buffer.hxx b/odb/details/buffer.hxx
index 2b26e8c..558be9b 100644
--- a/odb/details/buffer.hxx
+++ b/odb/details/buffer.hxx
@@ -64,6 +64,22 @@ namespace odb
{
return static_cast<T*> (data_);
}
+
+ // Note that strictly speaking the return type should be void* const*
+ // but that would make using this function too awkward since we often
+ // store the result as void*.
+ //
+ void**
+ data_ptr ()
+ {
+ return &data_;
+ }
+
+ const void* const*
+ data_ptr () const
+ {
+ return &data_;
+ }
};
typedef basic_buffer<char> buffer;