diff options
author | 2013-02-26 20:17:56 -0800 | |
---|---|---|
committer | 2013-03-02 08:59:14 -0800 | |
commit | b2b3196294e7551cfa34f6785afc0db03cf652e8 (patch) | |
tree | 94c148e2a24b924ea8a32456a2b56288d2ceddba | |
parent | cdb96078f13a21891e419b5c578737f784061f6a (diff) | |
download | paludis-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.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/serialise-impl.hh b/paludis/serialise-impl.hh index 578d3e63b..343679b0c 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); } |