better-enums icon indicating copy to clipboard operation
better-enums copied to clipboard

versions of the _from_string() functions taking const std::string&

Open eyalroz opened this issue 9 years ago • 0 comments

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.

eyalroz avatar Aug 27 '16 09:08 eyalroz