File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
#include < crypto/sha256.h>
8
8
#include < key.h>
9
- #include < validation.h>
10
- #include < util.h>
11
9
#include < random.h>
12
-
13
- #include < boost/lexical_cast.hpp>
10
+ #include < util.h>
11
+ #include < utilstrencodings.h>
12
+ #include < validation.h>
14
13
15
14
#include < memory>
16
15
@@ -64,8 +63,11 @@ int main(int argc, char** argv)
64
63
std::string scaling_str = gArgs .GetArg (" -scaling" , DEFAULT_BENCH_SCALING);
65
64
bool is_list_only = gArgs .GetBoolArg (" -list" , false );
66
65
67
- double scaling_factor = boost::lexical_cast<double >(scaling_str);
68
-
66
+ double scaling_factor;
67
+ if (!ParseDouble (scaling_str, &scaling_factor)) {
68
+ fprintf (stderr, " Error parsing scaling factor as double: %s\n " , scaling_str.c_str ());
69
+ return EXIT_FAILURE;
70
+ }
69
71
70
72
std::unique_ptr<benchmark::Printer> printer (new benchmark::ConsolePrinter ());
71
73
std::string printer_arg = gArgs .GetArg (" -printer" , DEFAULT_BENCH_PRINTER);
You can’t perform that action at this time.
0 commit comments