Skip to content

Commit 4726590

Browse files
committed
remove obsoleted unary_function inheritance
1 parent c7fcd1b commit 4726590

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

source/bxdatatools/include/datatools/event_id.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ namespace datatools {
217217
/** May be used with the std::find_if standard algorithm.
218218
*/
219219
class event_id_equal_predicate
220-
: public std::unary_function<event_id, bool>
220+
// : public std::unary_function<event_id, bool>
221221
{
222222
public:
223223

source/bxdatatools/include/datatools/i_predicate.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
#define DATATOOLS_I_PREDICATE_H
44

55
// Standard Library:
6-
#include<functional>
6+
// #include <functional>
77

88
namespace datatools {
99

1010
//! \brief A template predicate abstract class
1111
template <class T>
1212
class i_predicate
13-
: public std::unary_function<const T&, bool>
13+
// obsoleted from C++17
14+
// : public std::unary_function<const T&, bool>
1415
{
1516
public:
1617
virtual bool operator()(const T & obj_) const = 0;

source/bxdatatools/include/datatools/smart_ref.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ namespace datatools {
119119

120120
//! \brief Predicate used by the smart_ref template class
121121
class has_flag
122-
: public std::unary_function<smart_ref_type, bool>
122+
// : public std::unary_function<smart_ref_type, bool>
123123
{
124124
public:
125125

0 commit comments

Comments
 (0)