Skip to content

Fix assignment for Attribute from other Attribute#1279

Merged
fabratu merged 2 commits intonetworkit:masterfrom
bernlu:fix-attribute-direct-assignment
Jan 24, 2025
Merged

Fix assignment for Attribute from other Attribute#1279
fabratu merged 2 commits intonetworkit:masterfrom
bernlu:fix-attribute-direct-assignment

Conversation

@bernlu
Copy link

@bernlu bernlu commented Jan 10, 2025

Direct assignment of attributes to each other (attr[i] = attr[j]) previously used the implicitly defined assignment operators for IndexProxy which do not modify the attribute value. The new implementation with requires clauses also ensure that assignment operators are deleted for const attributes (the old implementation implicitly defined them).

@bernlu bernlu force-pushed the fix-attribute-direct-assignment branch from 8dc6176 to b0e47a3 Compare January 13, 2025 11:33
@bernlu bernlu force-pushed the fix-attribute-direct-assignment branch from b0e47a3 to 7b7b0a6 Compare January 16, 2025 09:39
@fabratu fabratu merged commit 47b2fb2 into networkit:master Jan 24, 2025
@fabratu fabratu assigned bernlu and unassigned bernlu Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants