FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Move initializer_list constructor implementation to the header by umar456 · Pull Request #2987 · arrayfire/arrayfire · GitHub

Repository navigation

Move initializer_list constructor implementation to the header - #2987

Merged
9prady9 merged 2 commits into
arrayfire:masterfrom
umar456:init_list_header
Aug 12, 2020
Merged

9prady9 merged 2 commits into
arrayfire:masterfrom
umar456:init_list_header

Conversation

umar456 commented Aug 11, 2020

Copy link
Copy Markdown
Member

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 added this to the 3.8.0 milestone Aug 11, 2020
Comment thread include/af/array.h
: arr(nullptr) {
const dim_t *size = dims.get();
if (af_err __aferr = af_create_array(
&arr, list.begin(), AF_MAX_DIMS, size,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

9prady9 merged commit e15f587 into arrayfire:master Aug 12, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL