Skip to content

Commit 63c2570

Browse files
committed
[tmva][sofie] Fix adding standard library header
Remove check to include standard library header only if within a list of allowed ones. There is no need for that check and this was excluding addition of extra headers like chrono
1 parent 0d35baf commit 63c2570

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tmva/sofie/inc/TMVA/RModel_Base.hxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ public:
8282
}
8383
void AddNeededStdLib(std::string libname)
8484
{
85-
static const std::unordered_set<std::string> allowedStdLib = {"vector", "algorithm", "cmath", "memory", "span"};
86-
if (allowedStdLib.find(libname) != allowedStdLib.end()) {
87-
fNeededStdLib.insert(libname);
88-
}
85+
// if the library is already in the set, insert does nothing, so we don't need to check before inserting
86+
fNeededStdLib.insert(libname);
8987
}
9088
void AddNeededCustomHeader(std::string filename)
9189
{

0 commit comments

Comments
 (0)