From af648c770b272852a8f5679289ee34e8a9ce65d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klepl?= Date: Sat, 4 May 2024 14:46:16 +0200 Subject: [PATCH] add backwards support for `sized_vectors` --- include/noarr/structures/extra/shortcuts.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/noarr/structures/extra/shortcuts.hpp b/include/noarr/structures/extra/shortcuts.hpp index 2c2f52f..8f868c0 100644 --- a/include/noarr/structures/extra/shortcuts.hpp +++ b/include/noarr/structures/extra/shortcuts.hpp @@ -39,6 +39,12 @@ constexpr auto vectors(Lengths ...lengths) noexcept { return (... ^ vector(lengths)); } +template requires IsDimPack && (sizeof...(Dims) == sizeof...(Lengths)) +[[deprecated("Use vectors instead")]] +constexpr auto sized_vectors(Lengths ...lengths) noexcept { + return (... ^ vector(lengths)); +} + template struct array_proto { static constexpr bool proto_preserves_layout = false;