From 718b658dcf64bbb25d98d387276add9aa188d222 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 7 Aug 2021 10:54:07 +0200 Subject: Fix signature of const buffer::data_ptr() --- odb/details/buffer.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 (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_; -- cgit v1.1