`CompareModifiedEntry`, as used in

https://github.com/bitcoin/bitcoin/blob/3c098a8aa0780009c11b66b1a5d488a928629ebf/src/miner.h#L97-L112

will trigger a compile-time error in many `const` operations of index #1 of `indexed_modified_transaction_set` because `CompareModifiedEntry::operator()` is not `const`.

Most likely related to:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224129
{
private:
    CTransactionRef tx;
    CAmount nFee;              
    size_t nTxWeight;          
    size_t nUsageSize;         
    int64_t nTime;             
    unsigned int entryHeight;  
    bool spendsCoinbase;       
    int64_t sigOpCost;         
    int64_t feeDelta;          
    LockPoints lockPoints;     
    
    
    
    uint64_t nCountWithDescendants;  
    uint64_t nSizeWithDescendants;   
    CAmount nModFeesWithDescendants; 
    
    uint64_t nCountWithAncestors;
    uint64_t nSizeWithAncestors;
    CAmount nModFeesWithAncestors;
    int64_t nSigOpCostWithAncestors;
public:
    CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFee,
                    int64_t _nTime, unsigned int _entryHeight,
                    bool spendsCoinbase,
                    int64_t nSigOpsCost, LockPoints lp);
    const CTransaction& GetTx() const { return *this->tx; }