You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we have nested initializer list constructors for containers, having an overloaded assignment operator with the same nested initializer list would probably make sense.
The text was updated successfully, but these errors were encountered:
I agree with having such an operator. However, this operator should be in xcontainer. Assignment operators in xsemantics should be mathematical assignments only.
After more thoughts on that, which interface should provide the assignment from initializer lists depends on whether we want to provide computed assignment from initializer list. If so, we can consider initializer lists as a specific shortcut for xexpression, and all assignment operators should be provided by the semantic classes. Otherwise, there should be a simple assignment operator in container and view classes.
I have just added a initializer from a C array to xtensor fixed -- therefore I am not sure how that would play with an initializer_list assign in the semantics.
However, it would still be cool to be able to use initializer_list with xview.
Since we have nested initializer list constructors for containers, having an overloaded assignment operator with the same nested initializer list would probably make sense.
The text was updated successfully, but these errors were encountered: