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
C++ generated code uses for arrays special inner classes. For example for checking of offsets (ZserioOffsetChecker_*) or for initializing of offsets (ZserioOffsetInitializer_*). These inner classes store reference to owner (Zserio object) and are copyable. Such solution is error prone and can potentionally lead to dangling pointer (see #501).
Therefore, it would be better and safer to redesign C++ arrays to accept reference to owner directly in arrays' calls (e.g. in read(), write(), etc...)
The text was updated successfully, but these errors were encountered:
C++ generated code uses for arrays special inner classes. For example for checking of offsets (
ZserioOffsetChecker_*
) or for initializing of offsets (ZserioOffsetInitializer_*
). These inner classes store reference to owner (Zserio object) and are copyable. Such solution is error prone and can potentionally lead to dangling pointer (see #501).Therefore, it would be better and safer to redesign C++ arrays to accept reference to owner directly in arrays' calls (e.g. in
read()
,write()
, etc...)The text was updated successfully, but these errors were encountered: