diff --git a/distrho/extra/String.hpp b/distrho/extra/String.hpp index d9a91ca4..02383958 100644 --- a/distrho/extra/String.hpp +++ b/distrho/extra/String.hpp @@ -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: