Skip to content

Conversation

@umar456
Copy link
Member

@umar456 umar456 commented Aug 11, 2020

Moves the initialization list constructor to the header so that
we avoid version conflicts between compilers for the implemenation
of the initializer list. This approach will generate the initializer
list constructor for the user's compiler and avoid such conflicts.

Changes to Users

N/A

Checklist

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

Moves the initialization list constructor to the header so that
we avoid version conflicts between compilers for the implemenation
of the initializer list. This approach will generate the initializer
list constructor for the user's compiler and avoid such conflicts.
@umar456 umar456 added this to the 3.8.0 milestone Aug 11, 2020
: arr(nullptr) {
const dim_t *size = dims.get();
if (af_err __aferr = af_create_array(
&arr, list.begin(), AF_MAX_DIMS, size,
Copy link
Member

Choose a reason for hiding this comment

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

nit: Would be better if dims.ndims() - doesn't depend on Dim4 having space allocated for AF_MAX_DIMS.

@9prady9 9prady9 merged commit e15f587 into arrayfire:master Aug 12, 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