From 883af0827c3a5ce57d545d3bd9482f97e40712b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aymeric=20PELL=C3=89?= Date: Thu, 9 Mar 2017 12:51:51 -0500 Subject: [PATCH] Try to fix windows compile error. --- src/pugixml.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pugixml.hpp b/src/pugixml.hpp index e3e24bc..05de015 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -383,7 +383,7 @@ namespace pugi template Type as() const { - istringstream_t stream = as_stringstream(); + istringstream_t stream(as_stringstream()); Type value; stream >> value; return value; @@ -760,7 +760,7 @@ namespace pugi template Type as() const { - istringstream_t stream = as_stringstream(); + istringstream_t stream(as_stringstream()); Type value; stream >> value; return value;