|
[Rivet] compilation fixDmitry Kalinkin dmitry.kalinkin at gmail.comThu Sep 15 06:12:50 BST 2016
Hi again, Just wanted to check if my email got through. I don't see it on the list's archive at https://www.hepforge.org/lists-archive/rivet/2016-September/thread.html Cheers, Dmitry On Wed, Sep 7, 2016 at 12:28 AM, Dmitry Kalinkin <dmitry.kalinkin at gmail.com> wrote: > Dear Rivet developers, > > The patch below fixes compilation on clang. Hope you will find it useful. > > Thanks, > > Dmitry > > diff --git a/include/Rivet/Tools/Utils.hh b/include/Rivet/Tools/Utils.hh > --- a/include/Rivet/Tools/Utils.hh > +++ b/include/Rivet/Tools/Utils.hh > @@ -101,7 +101,7 @@ namespace Rivet { > /// Convert a string to lower-case > inline string toLower(const string& s) { > string out = s; > - std::transform(out.begin(), out.end(), out.begin(), (int(*)(int)) tolower); > + std::transform(out.begin(), out.end(), out.begin(), (int(*)(int)) ::tolower); > return out; > } > > @@ -109,7 +109,7 @@ namespace Rivet { > /// Convert a string to upper-case > inline string toUpper(const string& s) { > string out = s; > - std::transform(out.begin(), out.end(), out.begin(), (int(*)(int)) toupper); > + std::transform(out.begin(), out.end(), out.begin(), (int(*)(int)) ::toupper); > return out; > } > >
More information about the Rivet mailing list |