From 6ed43e10e50bbd481fca0db812349713ab77f699 Mon Sep 17 00:00:00 2001 From: Myun2 Date: Thu, 24 May 2012 03:14:12 +0900 Subject: [PATCH] string_stream.hpp --- roast/include/roast/stream/string_stream.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roast/include/roast/stream/string_stream.hpp b/roast/include/roast/stream/string_stream.hpp index 23806225..b7bd5096 100644 --- a/roast/include/roast/stream/string_stream.hpp +++ b/roast/include/roast/stream/string_stream.hpp @@ -35,10 +35,13 @@ namespace roast const char* c_str() const { return m_ref.c_str(); } - ::std::string get_string() { + ::std::string& get_string() { return m_ref; } - const ::std::string get_string() const { + const ::std::string& get_string() const { + return m_ref; + } + const ::std::string& to_string() const { return m_ref; } }; -- 2.11.0