[cfe-commits] [libcxxabi] r137469 - in /libcxxabi/trunk: src/cxa_demangle.cpp test/test_demangle.cpp

Jonathan Turner jonathan_d_turner at apple.com
Fri Aug 12 10:47:54 PDT 2011


On Aug 12, 2011, at 10:33 AM, Howard Hinnant wrote:

> Author: hhinnant
> Date: Fri Aug 12 12:33:10 2011
> New Revision: 137469
> +                char* t = f;
> +                *t++ = 'a';
> +                *t++ = 'u';
> +                *t++ = 't';
> +                *t++ = 'o';
> +                *t++ = ' ';

Silly question, but why not use a memcpy type operation here instead of manually setting each character?  There may be a perfectly good reason to do it this way, but it took me a sec to read what it was doing.

Jonathan




More information about the cfe-commits mailing list