From 428471d39fb8c205a9fad899c88c30a2cb7df685 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 16 Jul 2020 04:35:13 -0400 Subject: Fix error compiling under clang Clang on MacOS defaulted to interpreting these lines as function declarations. Changing to explicit object instantiation. --- Options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Options.cpp b/Options.cpp index 4515307..34b1e66 100644 --- a/Options.cpp +++ b/Options.cpp @@ -111,7 +111,7 @@ void Options::parseArgv(int start, int argc, char* argv[]) { i--; continue; } - std::istringstream dat(std::string(args[i])); + std::istringstream dat((std::string(args[i]))); int num; dat >> num; @@ -136,7 +136,7 @@ void Options::parseArgv(int start, int argc, char* argv[]) { i--; continue; } - std::istringstream dat(std::string(args[i])); + std::istringstream dat((std::string(args[i]))); int len; dat >> len; -- cgit v1.2.3