[cxx-interop] Add a SWIFT_MUTATING macro to <swift/bridging> header #66322
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
swift 5.9
triage needed
This issue needs more specific labels
Uh oh!
There was an error while loading. Please reload this page.
This macro is needed to allow users to annotate constant C++ member functions that do mutate the object, e.g. using a
mutable
C++ field. This annotation makes Swift import them asmutating
methods then.Note: the compiler already supports it using the
swift_attr("mutating")
attribute, now we just need a macro. You can use__attribute__((swift_attr("mutating")))
for now to workaround this issue.The text was updated successfully, but these errors were encountered: