Skip to content
Snippets Groups Projects
Commit df6055e8 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

fix problem with to tolower on Windows

git-svn-id: http://root.cern.ch/svn/root/trunk@20255 27541ba8-7e3a-0410-8455-c3a389f83636
parent 4aaeae7b
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@
#include <cmath>
#include <algorithm>
#include <functional>
#include <ctype.h> // need to use c version of tolower defined here
namespace ROOT {
......@@ -65,9 +66,7 @@ GSLMinimizer::GSLMinimizer( const char * type) :
{
// Constructor implementation from a string
std::string algoname(type);
#ifndef _WIN32 // problem on Windows with transform (need to be fixed)
std::transform(algoname.begin(), algoname.end(), algoname.begin(), (int(*)(int)) std::tolower );
#endif
std::transform(algoname.begin(), algoname.end(), algoname.begin(), (int(*)(int)) tolower );
ROOT::Math::EGSLMinimizerType algo = kConjugateFR; // default value
if (algoname == "conjugatepr") algo = kConjugatePR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment