aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-02-26 20:17:56 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-03-02 08:59:14 -0800
commitb2b3196294e7551cfa34f6785afc0db03cf652e8 (patch)
tree94c148e2a24b924ea8a32456a2b56288d2ceddba
parentcdb96078f13a21891e419b5c578737f784061f6a (diff)
downloadpaludis-b2b3196294e7551cfa34f6785afc0db03cf652e8.tar.gz
paludis-b2b3196294e7551cfa34f6785afc0db03cf652e8.tar.xz
explicitly construct stream
clang does not implicitly create the istream from std::string. Explicitly create the istringstream (which inherits from istream) to ensure type match for the method invocation.
-rw-r--r--paludis/serialise-impl.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/serialise-impl.hh b/paludis/serialise-impl.hh
index 578d3e6..343679b 100644
--- a/paludis/serialise-impl.hh
+++ b/paludis/serialise-impl.hh
@@ -34,6 +34,7 @@
#include <list>
#include <ostream>
#include <istream>
+#include <sstream>
namespace paludis
{
@@ -298,7 +299,8 @@ namespace paludis
const std::string & str,
const std::string & class_name)
{
- Deserialiser d(env, str);
+ std::istringstream stream(str);
+ Deserialiser d(env, stream);
Deserialisation dd(class_name, d);
return T_::deserialise(dd);
}