summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-07-16 04:35:13 -0400
committerMalfurious <m@lfurio.us>2020-07-16 04:35:13 -0400
commit428471d39fb8c205a9fad899c88c30a2cb7df685 (patch)
treedc4e25e336a98e0b7b22edcd06e2fb2274872d47
parent32ae5aef3f93afc6a1292c8bc1c0017109a1b269 (diff)
downloadcompass-428471d39fb8c205a9fad899c88c30a2cb7df685.tar.gz
compass-428471d39fb8c205a9fad899c88c30a2cb7df685.zip
Fix error compiling under clang
Clang on MacOS defaulted to interpreting these lines as function declarations. Changing to explicit object instantiation.
-rw-r--r--Options.cpp4
1 files 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;