Skip to content

Commit

Permalink
Fix deduction guide with std::initializer_list
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 14, 2024
1 parent 59217cb commit 28f08f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xtd.core/include/xtd/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ namespace xtd {
template<typename type_t, xtd::size rank = 1, typename allocator_t = xtd::collections::generic::helpers::allocator<typename std::conditional<std::is_same<bool, type_t>::value, char, type_t>::type>>
array_(const xtd::collections::generic::ilist<type_t>&) -> array_<type_t, rank, allocator_t>;

template<typename type_t, xtd::size rank = 1, typename allocator_t = xtd::collections::generic::helpers::allocator<typename std::conditional<std::is_same<bool, type_t>::value, char, type_t>::type>>
array_(const std::initializer_list<type_t>&) -> array_<type_t, rank, allocator_t>;

template<typename type_t, xtd::size rank = 1, typename allocator_t = xtd::collections::generic::helpers::allocator<typename std::conditional<std::is_same<bool, type_t>::value, char, type_t>::type>>
array_(const std::vector<type_t>&) -> array_<type_t, rank, allocator_t>;

Expand Down

0 comments on commit 28f08f1

Please sign in to comment.