+ 1
Custom class as key | unordered map
Hi Can someone suggest whats the error in code below: https://code.sololearn.com/c74pGRbpO1e8/?ref=app
2 odpowiedzi
+ 7
line 20, the '&' is at the wrong location. Should be after the type test, not after the const (since you are using west side notation). Like this:
size_t operator()(const test& t1)const
fixes the code
+ 3
Thanks