aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-07 10:54:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-07 10:54:07 +0200
commit718b658dcf64bbb25d98d387276add9aa188d222 (patch)
tree27148c3788a12237fd76fadd500e22c242671152
parent02f8e411774a5e77fef6fa4ea8b3604bad8c3d43 (diff)
Fix signature of const buffer::data_ptr()
-rw-r--r--odb/details/buffer.hxx6
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_;