Comment by sophacles
10 months ago
Look at the linked code - it literally shows what happens in that case. What happens is not what you're saying.
10 months ago
Look at the linked code - it literally shows what happens in that case. What happens is not what you're saying.
This code compiles on 1.81 and fails to compile on 1.82: https://godbolt.org/z/9GbbMKjcf
You are always free to use fully-qualified paths to protect yourself from any change in your dependencies (including std) that would break inference (by making more than one method resolve).