Apropos string_ref, I would like to see lexical_cast extended to
support a Range concept.
lexical_cast(const CharType*
chars,
std::size_t count)
function since 1.52. And I'm afraid that's all what can be done without breaking the initial interface and behavior of LexicalCast library.