You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concurrentqueue.h
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -476,15 +476,10 @@ namespace details
476
476
template<typename T>
477
477
staticinlineboolcircular_less_than(T a, T b)
478
478
{
479
-
#ifdef _MSC_VER
480
-
#pragma warning(push)
481
-
#pragma warning(disable: 4554)
482
-
#endif
483
479
static_assert(std::is_integral<T>::value && !std::numeric_limits<T>::is_signed, "circular_less_than is intended to be used only with unsigned integer types");
// Note: extra parens around rhs of operator<< is MSVC bug: https://developercommunity2.visualstudio.com/t/C4554-triggers-when-both-lhs-and-rhs-is/10034931
482
+
// silencing the bug requires #pragma warning(disable: 4554) around the calling code and has no effect when done here.
0 commit comments