You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(json_wrapper): fix undefined behavior in copy constructor
The copy constructor was checking owns_json_ and json_ before they were
initialized, causing undefined behavior. This fix initializes members
before use in the member initializer list.
Added unit tests to verify copy constructor behavior in various scenarios,
including copying non-owning wrappers from operator[].
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
0 commit comments