diff options
-rw-r--r-- | odb/details/buffer.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/details/buffer.hxx b/odb/details/buffer.hxx index 394d96e..558be9b 100644 --- a/odb/details/buffer.hxx +++ b/odb/details/buffer.hxx @@ -65,13 +65,17 @@ 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 void* const* data_ptr () const { return &data_; |