[SR-12802] [C++] Disambiguate functions with lvalue and rvalue reference parameters in the same overload set #55247
Labels
affects ABI
Flag: Affects ABI
c++ interop
Feature: Interoperability with C++
c++ to swift
Feature → c++ interop: c++ to swift
clang importer
Area → compiler: The clang importer
compiler
The Swift compiler in itself
feature
A feature request or implementation
Additional Detail from JIRA
md5: f1606e30e6fff27879d88ad66f765fe0
Issue Description:
Right now we import lvalue and rvalue references identically, as `UnsafePointer` or `UnsafeMutablePointer` (and keeping the function name intact), which results in conflicts:
Both get imported as:
Ideally we shouldn't create or somehow resolve the ambiguity in imported Swift API in case
T&
andT&&
are both in the same overload set.The text was updated successfully, but these errors were encountered: