Re:Mapping Strings in C++
by toth on Wednesday April 12, 2017 @05:52PM
(#14102101)
I get that part, that's why you use std::find or std::lower_bound on the vector, but my point is that std::lower_bound will not give you the right answer unless your enum is defined with the names in alphabetical order.
[ Parent
| on HN ]
There are no comments on this comment yet.