From e27a7732db7c115c269d0974cedf4ba4729db594 Mon Sep 17 00:00:00 2001 From: Thomas Bleher Date: Tue, 19 Jun 2018 07:46:54 +0200 Subject: [PATCH] Directly construct stringstream without copy/move The libstdc++ bundled with G++ 4.8.1 on OpenSUSE 13.1 does not have a move constructor for std::stringstream, and copying is forbidden. Work around this by constructing the std::stringstream directly. --- include/nonius/param.h++ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nonius/param.h++ b/include/nonius/param.h++ index b0d7bf3..4fa1076 100644 --- a/include/nonius/param.h++ +++ b/include/nonius/param.h++ @@ -100,7 +100,7 @@ public: friend bool operator==(const param& x, const param& y) { return x.impl_->eq(y); } param parse(std::string const& s) const { - auto ss = std::stringstream{s}; + std::stringstream ss{s}; auto cpy = *this; ss.exceptions(std::ios::failbit); ss >> cpy;