Browse code

Turns out that the trailing return type isn't actually needed here.

Naram Qashat authored on 2021/03/21 04:22:59
Showing 1 changed files
... ...
@@ -124,7 +124,7 @@ inline constexpr int REC_PLAYER2 = 6;
124 124
 inline constexpr int REC_STRM = 7;
125 125
 
126 126
 // Comes from https://stackoverflow.com/a/14589519
127
-template<typename T> inline constexpr auto ToIntegral(const T &e) -> typename std::underlying_type_t<T>
127
+template<typename T> inline constexpr auto ToIntegral(const T &e)
128 128
 {
129 129
 	return static_cast<std::underlying_type_t<T>>(e);
130 130
 }