Browse Source

Fix String compatibility with std::map

Closes #371

Signed-off-by: falkTX <falktx@falktx.com>
pull/375/head
falkTX 3 years ago
parent
commit
c2f66ac3c7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      distrho/extra/String.hpp

+ 6
- 0
distrho/extra/String.hpp View File

@@ -869,6 +869,12 @@ public:
return operator+(str.fBuffer);
}

// needed for std::map compatibility
bool operator<(const String& str) const noexcept
{
return std::strcmp(fBuffer, str.fBuffer) < 0;
}

// -------------------------------------------------------------------

private:


Loading…
Cancel
Save