Skip to content
Snippets Groups Projects
Commit 1e27f7a8 authored by Scott Snyder's avatar Scott Snyder Committed by Tadej Novak
Browse files

CxxUtils: Add standalone begin/end functions for span.

CxxUtils: Add standalone begin/end functions for span.

Add standalone begin/end functions for span.
Works around issues seen when combining root 6.30.4 and gcc14.
parent d7909617
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,18 @@ auto make_span (CONTAINER& c)
}
// Stand-alone begin/end functions, findable by ADL.
// Needed to work around issues seen when root 6.30.04 is used with gcc14.
template <class T>
auto begin (span<T>& s) { return s.begin(); }
template <class T>
auto begin (const span<T>& s) { return s.begin(); }
template <class T>
auto end (span<T>& s) { return s.end(); }
template <class T>
auto end (const span<T>& s) { return s.end(); }
} // namespace CxxUtils
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment