Repository navigation
Fix compilation with C++17 (Clang) #325 - #326
Conversation
Replace deprecated std::ptr_fun with lambda function
|
The Travis build is failing because C++11 isn't explicitly enabled during compilation with gcc 4.8. I'll remove the lamba function... or you prefer to require C++11? |
|
Hm, so far we didn't require C++11, so maybe better not require it just for this. |
|
Yeah, we decided to use only C++03 in BAT for 1.0 at some point for backwards compatibility. I"m not sure anyone these days has this requirement, though. If you compile BAT with root6, c++11 is used anyways to compile BAT as well. |
|
@gipert, is this ready to merge, from your side? |
|
Yep! |
|
@fredRos, @greenwald, any objections? |
fredRos
left a comment
There was a problem hiding this comment.
Looks ok, I"d just add linebreaks to be consistent with the rest of the code like
if ()
erase
else ()
...|
Thanks, @gipert ! |
Replace deprecated
std::ptr_funwith lambda function. Makes BAT compilable with-std=c++17on my Mac.