Commit baa4241b authored by Dominik Charousset's avatar Dominik Charousset

Add missing make_span overload

parent f36bc529
...@@ -221,6 +221,13 @@ auto make_span(T& xs) -> span<detail::remove_reference_t<decltype(xs[0])>> { ...@@ -221,6 +221,13 @@ auto make_span(T& xs) -> span<detail::remove_reference_t<decltype(xs[0])>> {
return {xs.data(), xs.size()}; return {xs.data(), xs.size()};
} }
/// Convenience function to make using `caf::span` more convenient without the
/// deduction guides.
template <class T, size_t N>
span<T> make_span(T (&xs)[N]) {
return {xs, N};
}
/// Convenience function to make using `caf::span` more convenient without the /// Convenience function to make using `caf::span` more convenient without the
/// deduction guides. /// deduction guides.
template <class T> template <class T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment