diff options
| author | in0ni <gonzalez.af@gmail.com> | 2022-05-03 22:15:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-03 22:15:42 -0400 |
| commit | 0cf5105df1a2c6f36e3e8af234b230f2dd5d0710 (patch) | |
| tree | 96d42a80d948004b7caf72411fffebaf421e979f /src/constexpr_utils.hh | |
| parent | 9b49c5db0df7de76f299b40f2c70076ced89e64c (diff) | |
| parent | 5c6238ef113da8c2844ff9bcfa27c87e3473c150 (diff) | |
Merge branch 'mawww:master' into master
Diffstat (limited to 'src/constexpr_utils.hh')
| -rw-r--r-- | src/constexpr_utils.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/constexpr_utils.hh b/src/constexpr_utils.hh index d9ba2abb..f83faacb 100644 --- a/src/constexpr_utils.hh +++ b/src/constexpr_utils.hh @@ -28,6 +28,9 @@ struct Array T m_data[N]; }; +template<typename T, typename... U> requires (std::is_same_v<T, U> and ...) +Array(T, U...) -> Array<T, 1 + sizeof...(U)>; + template<typename T, size_t N, size_t... Indices> constexpr Array<T, N> make_array(const T (&data)[N], std::index_sequence<Indices...>) { |
