Time: operator() on the comparator structure must be const.
The STL seems to require it, but before GCC 11 that may not have been properly enforced.
This commit is contained in:
parent
91a0b53040
commit
52f87edca5
@ -66,7 +66,7 @@ using BPrivate::ObjectDeleter;
|
|||||||
|
|
||||||
|
|
||||||
struct TimeZoneItemLess {
|
struct TimeZoneItemLess {
|
||||||
bool operator()(const BString& first, const BString& second)
|
bool operator()(const BString& first, const BString& second) const
|
||||||
{
|
{
|
||||||
// sort anything starting with '<' behind anything else
|
// sort anything starting with '<' behind anything else
|
||||||
if (first.ByteAt(0) == '<') {
|
if (first.ByteAt(0) == '<') {
|
||||||
|
Loading…
Reference in New Issue
Block a user