-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++Feature: Interoperability with C++c++ to swiftFeature → c++ interop: c++ to swiftFeature → c++ interop: c++ to swiftcompilerThe Swift compiler itselfThe Swift compiler itselfswift 6.0unexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output
Description
MSVC's implementation of std::vector::iterator
uses using Base::operator-;
, which currently doesn't result in func -(_:std.vector.iterator,_:std.vector.iterator)
being created. This operator is required for the automatic conformance to UnsafeCxxRandomAccessIterator
. The lack of it prevents the conformance of std.vector
to CxxRandomAccessCollection
from being synthesized on Windows in #69433.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++Feature: Interoperability with C++c++ to swiftFeature → c++ interop: c++ to swiftFeature → c++ interop: c++ to swiftcompilerThe Swift compiler itselfThe Swift compiler itselfswift 6.0unexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output