Skip to content
Snippets Groups Projects
Commit 39b4d574 authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Don't use std::regex on Windows

std::regex throws an exception on Windows - probably due to the negative lookahead
parent b14fea4a
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,7 @@ RooFormula::RooFormula(const RooFormula& other, const char* name) :
_tFormula.reset(newTF);
}
#ifndef _MSC_VER
#if !defined(__GNUC__) || defined(__clang__) || (__GNUC__ > 4) || ( __GNUC__ == 4 && __GNUC_MINOR__ > 8)
#define ROOFORMULA_HAVE_STD_REGEX
////////////////////////////////////////////////////////////////////////////////
......@@ -264,6 +265,7 @@ std::string RooFormula::reconstructFormula(std::string internalRepr) const {
return internalRepr;
}
#endif //GCC < 4.9 Check
#endif //_MSC_VER
////////////////////////////////////////////////////////////////////////////////
/// Find all input arguments which are categories, and save this information in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment