[Mlir-commits] [mlir] [mlir] Make the Python binding type casters well-formed under C++23 (PR #208093)
Nikhil Kalra
llvmlistbot at llvm.org
Wed Jul 8 20:50:12 PDT 2026
nikalra wrote:
> Seems fine (explicit construction over implicit is better anyway) but I guess this pessimizes the move also? So I'm wondering if there's a way to get both (23 compliance and move)? Then again maybe it doesn't even really matter because of RVO 🤷♂️.
Updated the description to point out that the behavior is equivalent to pre-C++23 builds, we just call the lvalue constructor manually for the xvalue (whereas the rvalue decayed to an lvalue automatically before).
https://github.com/llvm/llvm-project/pull/208093
More information about the Mlir-commits
mailing list