Someone may question why I'm using integral keys there. This is an
On some hand, having random strings without a fixed length is good for the
user, as those are easily readable.
On the other hand it's not so good for the programmer and the compiler. C++
has strict limitations on how something like that can be declared as string.
Without C++11 it's even worse. On another side, BMessage uses strings as
keys (is this good at all?), so any performance benefit is mitigated this
If the enums are contiguous and starting from 0 it is possible to add a
O(c) function that converts it to a string, but not the inverse as the
string still needs to be compared. IDv3 isn't that helpful as it uses
unreadable strings. So, I am not convinced by any solution at this precise