diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-06-29 09:38:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-06-29 09:38:56 +0200 |
commit | 1d8331b3f0750e56d42c4b137f1f4a11ee69154e (patch) | |
tree | cd127856073ca288ee7837989f17e1b00ab67a20 | |
parent | f1d06b7994d8b0aa31f86288183f46509bb78c19 (diff) |
Expose pointer to buffer variable in details::buffer
-rw-r--r-- | odb/details/buffer.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/details/buffer.hxx b/odb/details/buffer.hxx index 2b26e8c..394d96e 100644 --- a/odb/details/buffer.hxx +++ b/odb/details/buffer.hxx @@ -64,6 +64,18 @@ namespace odb { return static_cast<T*> (data_); } + + void** + data_ptr () + { + return &data_; + } + + const void** + data_ptr () const + { + return &data_; + } }; typedef basic_buffer<char> buffer; |