]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
stringify: use ostringstream instead of stringstream
authorIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 16 Apr 2014 07:39:00 +0000 (11:39 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 22 Apr 2014 16:43:12 +0000 (20:43 +0400)
Use ostringstream, as we don't need both input and output of the
stringstream in stringify().

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/include/stringify.h

index 76e7853a81667dccd5deed89da87416f1b4b73cd..9de33965b5e8277fd3d3f699072cd47322f127e3 100644 (file)
@@ -6,7 +6,7 @@
 
 template<typename T>
 inline std::string stringify(const T& a) {
-  std::stringstream ss;
+  std::ostringstream ss;
   ss << a;
   return ss.str();
 }