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;