
15 Apr
2006
15 Apr
'06
5:53 a.m.
The thing is, lexical_cast in its current implementation, is simple and elegant, and perfectly usable for most cases. It doesn't preclude optimisations in the *implementation*, and some such optimisations have been suggested.
In theory yes but since lexical_cast always work on the global locale optimizations are difficult. You can't just specialize on e.g. int to string conversion since you alse need to confirm that the default locale is the same as the classic one (or implement locale handling in the optimization).