Skip to content

Commit f65f667

Browse files
committed
Fixed the determination of eltype of ArrayPartition in the case of
complex nested arrays, such as vectors of StaticArrays, for example.
1 parent b869b88 commit f65f667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_partition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ end
77
ArrayPartition(x...) = ArrayPartition((x...,))
88

99
function ArrayPartition(x::S, ::Type{Val{copy_x}}=Val{false}) where {S<:Tuple,copy_x}
10-
T = promote_type(eltype.(x)...)
10+
T = promote_type(recursive_bottom_eltype.(x)...)
1111
if copy_x
1212
return ArrayPartition{T,S}(copy.(x))
1313
else

0 commit comments

Comments
 (0)