aboutsummaryrefslogtreecommitdiff
path: root/paludis/serialise-impl.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/serialise-impl.hh')
-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 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);
}