Merge branch 'developer' into gotthard2

This commit is contained in:
2020-01-16 16:52:08 +01:00
33 changed files with 715 additions and 582 deletions

View File

@ -2,8 +2,8 @@
#include "Detector.h"
#include "Result.h"
#include "sls_detector_exceptions.h"
#include "network_utils.h"
#include "sls_detector_exceptions.h"
#include <iostream>
#include <map>
#include <string>
@ -449,7 +449,7 @@ class CmdProxy {
}
inline unsigned int stoiHex(const std::string& s) {
unsigned long lresult = stoul(s, 0, 16);
unsigned long lresult = stoul(s, nullptr, 16);
unsigned int result = lresult;
if (result != lresult) {
throw std::out_of_range("cannot convert to unsigned int");
@ -458,7 +458,7 @@ class CmdProxy {
}
inline unsigned long int stoulHex(const std::string& s) {
unsigned long result = stoul(s, 0, 16);
unsigned long result = stoul(s, nullptr, 16);
return result;
}