]> git.sesse.net Git - stockfish/commit
Fix a very nasty conversion bug in Option c'tor
authorMarco Costalba <mcostalba@gmail.com>
Sun, 12 Apr 2009 00:09:03 +0000 (01:09 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 12 Apr 2009 00:10:50 +0000 (01:10 +0100)
commite38ad4d42ba0b363581444feafd0f10b92e17f9a
treec5276dc4d84a1703b37e07b1b5b37c6926136727
parentfad772f38753ef3f0ac745ace5f339073a6517b6
Fix a very nasty conversion bug in Option c'tor

Sometimes C++ can be really bad!

In this case an hard coded c string selects Option c'tor
with int argument instead of the std::string one becuase
it is considered a better matching by the compiler.

Fix the bug changing the argument type from std::string to
const char* so to be a better match then the int one.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/ucioption.cpp