Skip to content

Commit

Permalink
Remove std::binary_function
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseMckinzie committed May 8, 2024
1 parent 8d44d23 commit 291475f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/filepattern/cpp/util/alphanum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,21 @@ namespace doj

////////////////////////////////////////////////////////////////////////////

template<class Arg1, class Arg2, class Result>
struct binary_function
{
using first_argument_type = Arg1;
using second_argument_type = Arg2;
using result_type = Result;
};

/**
Functor class to compare two objects with the "Alphanum
Algorithm". If the objects are no std::string, they must
implement "std::ostream operator<< (std::ostream&, const Ty&)".
*/
template<class Ty>
struct alphanum_less : public std::binary_function<Ty, Ty, bool>
struct alphanum_less : public binary_function<Ty, Ty, bool>
{
bool operator()(const Ty& left, const Ty& right) const
{
Expand Down

0 comments on commit 291475f

Please sign in to comment.