summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2016-06-28 16:38:45 +0200
committerCNugteren <web@cedricnugteren.nl>2016-06-28 16:38:45 +0200
commit871b576c06415abf6faf4d3ac54e11621e487e72 (patch)
treec9b0a754d2a045bac3902fc9baf48406f9f977d0 /src
parent2c031f3e1d8f57f121e2d6d5d988f689ca921e6e (diff)
Made it possible to build the clients and tests on Windows using Visual Studio
Diffstat (limited to 'src')
-rw-r--r--src/utilities.cpp2
-rw-r--r--src/utilities.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utilities.cpp b/src/utilities.cpp
index e3a1fb75..68e480c5 100644
--- a/src/utilities.cpp
+++ b/src/utilities.cpp
@@ -182,7 +182,7 @@ template <> double2 ConvertArgument(const char* value) {
// This function matches patterns in the form of "-option value" or "--option value". It returns a
// default value in case the option is not found in the argument string.
template <typename T>
-T GetArgument(const int argc, char *argv[], std::string &help,
+T GetArgument(const int argc, char **argv, std::string &help,
const std::string &option, const T default_value) {
// Parses the argument. Note that this supports both the given option (e.g. -device) and one with
diff --git a/src/utilities.hpp b/src/utilities.hpp
index 9a2b9ffc..5a4eef0f 100644
--- a/src/utilities.hpp
+++ b/src/utilities.hpp
@@ -188,7 +188,7 @@ T ConvertArgument(const char* value);
// Basic argument parser, matching patterns in the form of "-option value" and "--option value"
template <typename T>
-T GetArgument(const int argc, char *argv[], std::string &help,
+T GetArgument(const int argc, char **argv, std::string &help,
const std::string &option, const T default_value);
// Returns the precision only