better-enums
better-enums copied to clipboard
versions of the _from_string() functions taking const std::string&
At the moment, the _from_string() function, its variants, and some additional functions such as _is_valid() take their input string as a const char* , meaning that you can't pass an std::string directly. I would expect to be able to do this without any conversions, wtih std::string being the preferred type for (a lot of / most) string work in C++.
If this is not intentional, I suggest variants be added which take const std::string& parameters.