Browse Source

Fix CarlaString for std::map compatibility

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.3
falkTX 3 years ago
parent
commit
04558b6310
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      source/utils/CarlaString.hpp

+ 6
- 0
source/utils/CarlaString.hpp View File

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

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

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

private:


Loading…
Cancel
Save