From a902c57dbe101a698101d601ce69df1cda038701 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Jul 2010 13:23:34 +0200 Subject: Add const version of data() --- odb/buffer.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb') diff --git a/odb/buffer.hxx b/odb/buffer.hxx index 2a07735..4f4ce0b 100644 --- a/odb/buffer.hxx +++ b/odb/buffer.hxx @@ -32,6 +32,12 @@ namespace odb return data_; } + const char* + data () const + { + return data_; + } + std::size_t capacity () const { -- cgit v1.1