projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b311c
)
string stream improvements
author
Michael Andres
<ma@suse.de>
Thu, 10 Apr 2014 17:13:33 +0000
(19:13 +0200)
committer
Michael Andres
<ma@suse.de>
Thu, 10 Apr 2014 17:13:33 +0000
(19:13 +0200)
zypp/base/String.h
patch
|
blob
|
history
diff --git
a/zypp/base/String.h
b/zypp/base/String.h
index
f32e28a
..
9145e90
100644
(file)
--- a/
zypp/base/String.h
+++ b/
zypp/base/String.h
@@
-226,9
+226,15
@@
namespace zypp
std::ostream & stream()
{ return _str; }
+ void clear()
+ { _str.str( std::string() ); }
+
std::ostringstream _str;
};
+ inline std::ostream & operator<<( std::ostream & str, const Str & obj )
+ { return str << (std::string)obj; }
+
///////////////////////////////////////////////////////////////////
/** \name String representation of number.
*