diff options
author | Malfurious <m@lfurio.us> | 2020-07-16 04:35:13 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2020-07-16 04:35:13 -0400 |
commit | 428471d39fb8c205a9fad899c88c30a2cb7df685 (patch) | |
tree | dc4e25e336a98e0b7b22edcd06e2fb2274872d47 /Options.cpp | |
parent | 32ae5aef3f93afc6a1292c8bc1c0017109a1b269 (diff) | |
download | compass-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.
Diffstat (limited to 'Options.cpp')
-rw-r--r-- | Options.cpp | 4 |
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;
|