There was an error while loading. Please reload this page.
1 parent b9f4be0 commit 7e68e8fCopy full SHA for 7e68e8f
1 file changed
include/gsl/util
@@ -178,7 +178,14 @@ GSL_NODISCARD auto finally(F&& f) noexcept
178
template <class T, class U>
179
GSL_SUPPRESS(type.1) constexpr T narrow_cast(U&& u) noexcept
180
{
181
+#if defined(__clang__) || defined(__GNUC__)
182
+#pragma GCC diagnostic push
183
+#pragma GCC diagnostic ignored "-Wfloat-equal"
184
+#endif
185
return static_cast<T>(std::forward<U>(u));
186
187
+#pragma GCC diagnostic pop
188
189
}
190
191
//
0 commit comments