From 3ec03cadd2b5059e54e5e9b8f4d506b4c6ce727d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 5 May 2023 06:46:00 -0700 Subject: Use deduction guides instead of helper functions for spans --- al/debug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'al/debug.cpp') diff --git a/al/debug.cpp b/al/debug.cpp index 3df85d62..a4b66ffb 100644 --- a/al/debug.cpp +++ b/al/debug.cpp @@ -311,7 +311,7 @@ FORCE_ALIGN void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type static constexpr size_t ElemCount{DebugSourceCount + DebugTypeCount + DebugSeverityCount}; static constexpr auto Values = make_array(); - al::span srcIndices{al::as_span(Values).subspan()}; + al::span srcIndices{al::span{Values}.subspan()}; if(source != AL_DONT_CARE_EXT) { auto dsource = GetDebugSource(source); @@ -320,7 +320,7 @@ FORCE_ALIGN void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type srcIndices = srcIndices.subspan(al::to_underlying(*dsource), 1); } - al::span typeIndices{al::as_span(Values).subspan()}; + al::span typeIndices{al::span{Values}.subspan()}; if(type != AL_DONT_CARE_EXT) { auto dtype = GetDebugType(type); @@ -329,7 +329,7 @@ FORCE_ALIGN void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type typeIndices = typeIndices.subspan(al::to_underlying(*dtype), 1); } - al::span svrIndices{al::as_span(Values).subspan()}; + al::span svrIndices{al::span{Values}.subspan()}; if(severity != AL_DONT_CARE_EXT) { auto dseverity = GetDebugSeverity(severity); @@ -344,7 +344,7 @@ FORCE_ALIGN void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type { const uint filterbase{(1u<(count))) + for(const uint id : al::span{ids, static_cast(count)}) { const uint64_t filter{filterbase | (uint64_t{id} << 32)}; -- cgit v1.2.3