| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
| : arr(nullptr) { | ||
| const dim_t *size = dims.get(); | ||
| if (af_err __aferr = af_create_array( | ||
| &arr, list.begin(), AF_MAX_DIMS, size, |
There was a problem hiding this comment.
nit: Would be better if dims.ndims() - doesn't depend on Dim4 having space allocated for AF_MAX_DIMS.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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