Fix 'comparison object must be invocable as const' (#846)

This commit is contained in:
Tindy X 2020-04-09 22:38:02 +08:00 committed by GitHub
parent 9b8f35093e
commit 70205f5d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ namespace detail {
class node { class node {
private: private:
struct less { struct less {
bool operator ()(const node* l, const node* r) {return l->m_index < r->m_index;} bool operator ()(const node* l, const node* r) const {return l->m_index < r->m_index;}
}; };
public: public: