mysql
mysql copied to clipboard
Make error_to_string O(1)
What's wrong with a switch statement? Like this:
https://github.com/boostorg/json/blob/develop/include/boost/json/impl/error.ipp#L31
Definitely nothing. I generated these files and probably was easier at that point with a std::find_if, but should be trivial to rewrite them with a switch.