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
The test case has pathological overloads, but users can and have encountered this with reasonable code (typically, when they define templated operators to handle their own enums).
Curiously, this doesn't happen in /std:c++17 or /std:c++latest mode. I haven't analyzed why, but this is definitely a problem in /std:c++14 mode.
This should compile, but doesn't:
This happens when the STL uses an enum as a bitmask:
STL/stl/inc/xlocale
Line 894 in 58bb49d
STL/stl/inc/xlocale
Line 1059 in 58bb49d
without defining dedicated bitmask operators:
STL/stl/inc/type_traits
Lines 2048 to 2089 in 58bb49d
The test case has pathological overloads, but users can and have encountered this with reasonable code (typically, when they define templated operators to handle their own enums).
Curiously, this doesn't happen in
/std:c++17
or/std:c++latest
mode. I haven't analyzed why, but this is definitely a problem in/std:c++14
mode.We should audit the entire STL for this problem.
Also tracked by Microsoft-internal VSO-115352 / AB#115352.
The text was updated successfully, but these errors were encountered: