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
Bugfix: recursing to parent object was invoking copy constructor of store object
Using static_cast to type was invoking copy constructor because a new object was
created. This was in particular a problem if the store object is a std::vector
because new memory is allocated, while the store pointer is connected to the branch.
Not yet debugged to full extend but this is very likely related to the fact, that
the branch creates sub-branches for the underlying type of the vector.
This might also be the reason for the problem earlier experienced with an attempt
to use the extracted object directly via SetBranchAddress.
In summary, static cast to type reference has to be used
static_cast<T>.method(...) -> static_cast<T&>.method(...) -> T::method(...)
Filling now the branches individually, so the bookkeeping for the extracted object
has been removed.
0 commit comments