Use std::memcpy, if possible