Skip to content

Add move constructor and operator= for dim4, Array<T> SparseArray<T> #2946

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

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Jun 26, 2020

Add nothrow move constructors for dim4. Array, SparseArray

Description

Create move constructors and move assignment operators for Array, SparseArray,
dim4. This adds move constructors for dim4 so this cannot be back ported.

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

@umar456 umar456 added this to the 3.8.0 milestone Jun 26, 2020
Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

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

No throw move constructors for CPU backend Array are not added. Any specific reason ?

@umar456
Copy link
Member Author

umar456 commented Jun 26, 2020

That static check and constructor was added in the osx_fixes PR. I couldn't add it to these classes because of dim4's move assignment operator and constructor.

@9prady9
Copy link
Member

9prady9 commented Jun 26, 2020

Got it. I didn't pull latest master after that PR merge, hence when I checked the file locally didn't find them in CPU backend.

@9prady9 9prady9 merged commit 0308a5c into arrayfire:master Jul 9, 2020
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