Skip to content

Commit 0656487

Browse files
committed
Fix push! for VarNamedVector
This should have been changed in #940, but slipped through as the file wasn't listed as one of the changed files.
1 parent 7532f44 commit 0656487

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/varnamedvector.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,11 @@ function update_internal!(
766766
return nothing
767767
end
768768

769+
function BangBang.push!(vnv::VarNamedVector, vn, val, dist)
770+
f = from_vec_transform(dist)
771+
return setindex_internal!(vnv, tovec(val), vn, f)
772+
end
773+
769774
# BangBang versions of the above functions.
770775
# The only difference is that update_internal!! and insert_internal!! check whether the
771776
# container types of the VarNamedVector vector need to be expanded to accommodate the new

0 commit comments

Comments
 (0)