Skip to content

Commit

Permalink
Make the initializer_list overload of Subarray::set_subarray zero…
Browse files Browse the repository at this point in the history
…-copy.
  • Loading branch information
teo-tsirpanis committed Oct 9, 2023
1 parent 561c8b6 commit e38db67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiledb/sm/cpp_api/subarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class Subarray {
*/
template <typename T = uint64_t>
Subarray& set_subarray(const std::initializer_list<T>& l) {
return set_subarray(std::vector<T>(l));
return set_subarray(std::data(l), l.size());
}

/**
Expand Down

0 comments on commit e38db67

Please sign in to comment.