OSDN Git Service
(root)
/
roast
/
roast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f42f876
)
string_stream.hpp
author
Myun2
<myun2@nwhite.info>
Wed, 23 May 2012 18:14:12 +0000
(
03:14
+0900)
committer
Myun2
<myun2@nwhite.info>
Wed, 23 May 2012 18:14:12 +0000
(
03:14
+0900)
roast/include/roast/stream/string_stream.hpp
patch
|
blob
|
history
diff --git
a/roast/include/roast/stream/string_stream.hpp
b/roast/include/roast/stream/string_stream.hpp
index
2380622
..
b7bd509
100644
(file)
--- 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;
}
};