We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SVector{k}
1 parent ed92217 commit b4e49ceCopy full SHA for b4e49ce
Project.toml
@@ -1,6 +1,6 @@
1
name = "StaticArrays"
2
uuid = "90137ffa-7385-5640-81b9-e52037218182"
3
-version = "1.5.22"
+version = "1.5.23"
4
5
[deps]
6
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
src/convert.jl
@@ -166,7 +166,7 @@ end
166
SA′ = construct_type(SA, sa)
167
need_rewrap(SA′, sa) ? SA′((sa,)) : SA′(Tuple(sa))
168
end
169
-@propagate_inbounds (::Type{SA})(a::AbstractArray) where {SA <: StaticArray} = convert(SA, a)
+@propagate_inbounds (T::Type{<:StaticArray})(a::AbstractArray) = convert(T, a)
170
171
# this covers most conversions and "statically-sized reshapes"
172
@inline function convert(::Type{SA}, sa::StaticArray{S}) where {SA<:StaticArray,S<:Tuple}
0 commit comments