diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-30 13:23:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-30 13:23:34 +0200 |
commit | a902c57dbe101a698101d601ce69df1cda038701 (patch) | |
tree | b91f701a7bda4323fd2e4f3cc12e56b461d87940 | |
parent | ce307edd9edb4a674ce0cfce734e00b5936d2955 (diff) |
Add const version of data()
-rw-r--r-- | odb/buffer.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |