projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37db62b
)
Revert "Simplify Option c'tor"
author
Marco Costalba
<mcostalba@gmail.com>
Fri, 7 Sep 2012 13:21:50 +0000
(15:21 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Fri, 7 Sep 2012 13:21:50 +0000
(15:21 +0200)
std::to_string() is C++11 material, not c++03.
So revert the patch.
src/ucioption.cpp
patch
|
blob
|
history
diff --git
a/src/ucioption.cpp
b/src/ucioption.cpp
index f76263e17ab543c5e2e0d77e29ed4f6277991fb4..bbbbbbf9c8475a32d728cfb485f89d8b9c521eae 100644
(file)
--- a/
src/ucioption.cpp
+++ b/
src/ucioption.cpp
@@
-127,7
+127,7
@@
Option::Option(Fn* f) : type("button"), min(0), max(0), idx(Options.size()), on_
{}
Option::Option(int v, int minv, int maxv, Fn* f) : type("spin"), min(minv), max(maxv), idx(Options.size()), on_change(f)
-{
defaultValue = currentValue = std::to_string(v
); }
+{
std::ostringstream ss; ss << v; defaultValue = currentValue = ss.str(
); }
Option::operator int() const {