Skip to content

MArray Constructor should make copy #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
garrison opened this issue Nov 11, 2017 · 2 comments · Fixed by #336
Closed

MArray Constructor should make copy #335

garrison opened this issue Nov 11, 2017 · 2 comments · Fixed by #336

Comments

@garrison
Copy link
Contributor

As discussed on discourse (and following the conclusion in JuliaLang/julia#23107), the MArray constructor should return a copy if an MArray is passed to it, but it does not in StaticArrays v0.6.4:

julia> a = @MVector [1,2,3]
3-element MVector{3,Int64}:
 1
 2
 3

julia> MVector(a) === a
true
@c42f
Copy link
Member

c42f commented Nov 12, 2017

Thanks for the bug report. This should be fixed now in master.

@garrison
Copy link
Contributor Author

Thank you!

garrison added a commit to garrison/Bravais.jl that referenced this issue Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants