diff options
| author | Minty-Meeo <45425365+Minty-Meeo@users.noreply.github.com> | 2022-09-22 21:12:54 -0500 |
|---|---|---|
| committer | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-06 22:49:53 -0500 |
| commit | e92f8fcbb46b49ffe83c6866d0e8f58fc9028c56 (patch) | |
| tree | 77d5e32ad7679a147f6c1c0a95d7515dba9a4fca /Source/Core/VideoCommon | |
| parent | bab3229c9827e3a21bdf98fd2d199c6f504da54d (diff) | |
Remove old GCC version workarounds
The minimum GCC version is now GCC 10.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h index acbed7bb2f..7112dd4523 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.h +++ b/Source/Core/VideoCommon/ShaderGenCommon.h @@ -227,14 +227,11 @@ std::string BitfieldExtract(std::string_view source) static_cast<u32>(BitFieldT::NumBits())); } -template <auto last_member, typename = decltype(last_member)> +template <auto last_member> void WriteSwitch(ShaderCode& out, APIType ApiType, std::string_view variable, const Common::EnumMap<std::string_view, last_member>& values, int indent, bool break_) { - // The second template argument is needed to avoid compile errors from ambiguity with multiple - // enums with the same number of members in GCC prior to 8. See https://godbolt.org/z/xcKaW1seW - // and https://godbolt.org/z/hz7Yqq1P5 using enum_type = decltype(last_member); // Generate a tree of if statements recursively |
