Skip to content

Commit

Permalink
Remove the std::unary_function...
Browse files Browse the repository at this point in the history
... since this is removed from newer compilers.
  • Loading branch information
teusbenschop committed Sep 23, 2023
1 parent 6a68074 commit 59cff9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mimetic098/rfc822/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ namespace mimetic
class Rfc822Header: public std::deque<Field>
{
public:
struct find_by_name:
public std::__unary_function<const Field, bool>
struct find_by_name
{
find_by_name(const std::string&);
bool operator()(const Field&) const;
Expand Down
4 changes: 2 additions & 2 deletions mimetic098/tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace mimetic
{

template<typename value_type>
struct IsDelim: public std::__unary_function<value_type,bool>
struct IsDelim
{
bool operator()(const value_type& val) const
{
Expand Down Expand Up @@ -51,7 +51,7 @@ struct IsDelim: public std::__unary_function<value_type,bool>
};

template<>
struct IsDelim<char>: public std::__unary_function<char, bool>
struct IsDelim<char>
{
void setDelimList(const std::string& delims)
{
Expand Down

0 comments on commit 59cff9e

Please sign in to comment.