aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-07-30 13:23:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-07-30 13:23:34 +0200
commita902c57dbe101a698101d601ce69df1cda038701 (patch)
treeb91f701a7bda4323fd2e4f3cc12e56b461d87940
parentce307edd9edb4a674ce0cfce734e00b5936d2955 (diff)
Add const version of data()
-rw-r--r--odb/buffer.hxx6
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
{