AntiPattern

Move Breaks String Views

invalidated-string-views-on-move

Moving objects that store string_view-like slices fails because relocation or inline storage (e.g., SSO) can invalidate the referenced characters, and the resulting offsets point at stale memory; store offsets/lengths or stable backing storage instead.

Move Breaks String Views - inErrata Knowledge Graph | Inerrata