Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe6beef4 authored by Ryan Prichard's avatar Ryan Prichard Committed by Automerger Merge Worker
Browse files

Merge "Remove use of std::unary_function and std::binary_function" am: 021fbb28

parents 8916722c 021fbb28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,13 +27,13 @@

namespace {

struct IsSpace : std::unary_function<std::string::value_type, bool> {
struct IsSpace {
  bool operator()(std::string::value_type v) {
    return isspace(static_cast<int>(v));
  }
};

struct IsHexDigit : std::unary_function<std::string::value_type, bool> {
struct IsHexDigit {
  bool operator()(std::string::value_type v) {
    return isxdigit(static_cast<int>(v));
  }
+1 −2
Original line number Diff line number Diff line
@@ -436,8 +436,7 @@ class A2dpCodecs {
  void debug_codec_dump(int fd);

 private:
  struct CompareBtBdaddr
      : public std::binary_function<RawAddress, RawAddress, bool> {
  struct CompareBtBdaddr {
    bool operator()(const RawAddress& lhs, const RawAddress& rhs) const {
      return (memcmp(&lhs, &rhs, sizeof(lhs)) < 0);
    }