Closed hchen99 closed 10 months ago
Following code in Event.hh would cause "error: no template named 'binary_function' in namespace 'std'" if using c++17 and above without failing the compilation though:
#ifndef SWIG struct CompareEventPtrs : public std::binary_function<Trick::Event *, Trick::Event *, bool> { bool operator()(const Trick::Event * lhs, const Trick::Event * rhs) const { return lhs->get_next_tics() < rhs->get_next_tics(); } }; #endif
This canary is very very sick
Following code in Event.hh would cause "error: no template named 'binary_function' in namespace 'std'" if using c++17 and above without failing the compilation though: