[PATCH] Use __builtin_memmove for trivially copy assignable types

Jonathan Wakely jwakely.gcc@gmail.com
Sat Jun 16 13:10:00 GMT 2018


On Sat, 16 Jun 2018 at 07:01, Glen Fernandes wrote:

> Use __builtin_memmove for trivially copy assignable types
>


I'll review the patch later, just a quick comment for now.

Every use of memcpy, memmove etc. makes it harder to make everything in
<algorithm> constexpr (as we're now required to do). But that's an existing
problem, and probably needs to be solved by teaching the built-ins to
expand inside constant expression evaluation.



More information about the Libstdc++ mailing list