diff options
author | Chris Robinson <[email protected]> | 2018-11-26 19:01:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-26 19:01:14 -0800 |
commit | 05390fa8276ae5e5d1929766cb0cc14818a45669 (patch) | |
tree | 0d1f04ae7c949ba796833ee952240848b5b324db /OpenAL32 | |
parent | 75b39cafc8b747a0f468382a9e4a64793a231b98 (diff) |
Add a missing std::begin
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index cb2181da..d809406d 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -872,7 +872,7 @@ inline ALint GetChannelIndex(const enum Channel (&names)[MAX_OUTPUT_CHANNELS], e { auto iter = std::find(std::begin(names), std::end(names), chan); if(iter == std::end(names)) return -1; - return std::distance(names, iter); + return std::distance(std::begin(names), iter); } /** * GetChannelIdxByName |