Skip to content

Commit

Permalink
add backwards support for sized_vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
jiriklepl committed May 4, 2024
1 parent 68f860b commit af648c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/noarr/structures/extra/shortcuts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ constexpr auto vectors(Lengths ...lengths) noexcept {
return (... ^ vector<Dims>(lengths));
}

template<auto ...Dims, class ...Lengths> requires IsDimPack<decltype(Dims)...> && (sizeof...(Dims) == sizeof...(Lengths))
[[deprecated("Use vectors instead")]]
constexpr auto sized_vectors(Lengths ...lengths) noexcept {
return (... ^ vector<Dims>(lengths));
}

template<IsDim auto Dim, std::size_t L>
struct array_proto {
static constexpr bool proto_preserves_layout = false;
Expand Down

0 comments on commit af648c7

Please sign in to comment.