I want to use a class as the key in a std::map.
std::map<Type, value> collection;
Although I defined operator<, the key isn't accepted: Invalid operands to binary expression ('const Type' and 'const Type').
class Type {
public:
    inline bool operator< (const Type& rhs) { /* ... */ }
Why is this happening?
 
     
    