How to reverse char[]?

Jonathan M Davis jmdavisProg at gmx.com
Tue Feb 7 19:07:51 PST 2012


On Wednesday, February 08, 2012 02:36:23 Timon Gehr wrote:
> char[] is handled by Phobos as a range of dchar, ergo it does not have
> swappable elements. Apparently there is no template specialisation of
> 'reverse' that handles narrow strings, you might want to file an
> enhancement request.

There already is such an overload in HEAD.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list