Skip to content
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

Fix bugs in assignment operators #71

Merged
merged 6 commits into from
Jul 30, 2024

Conversation

Thoemi09
Copy link
Contributor

There were 2 bugs:

  • Assigning a 1D contiguous range to a view did not work, since the assignment operator tried to construct a non-const view of a const range (it takes the range as const &).
  • A bug in the function call operator in _impl_basic_array_view_common.hpp allowed to assign to const views/arrays, since it returned a view with non-const value type.

Copy link
Member

@Wentzell Wentzell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Thoemi09 for locating and fixing these issues!

@Wentzell Wentzell merged commit 6b45cc5 into TRIQS:unstable Jul 30, 2024
4 of 5 checks passed
@Thoemi09 Thoemi09 deleted the DEV_ASSIGNMENT_BUGS branch August 9, 2024 19:02
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 this pull request may close these issues.

2 participants