Bo Persson於 2018年6月15日星期五 UTC+8下午4時35分20秒寫道:
As regard to the 'swap'. It's because I adopted 'the move ctor' approach.
template<typename T> Wy::swap(T& a, T& b) is thus natuarly defined.
Even the standard C++ adopted rref latter, I decided not to use it.
> You can avoid the ambiguity by only supplying the more specialized overload
>
> swap(your_type&, your_type&);
This ambiguity issue occurs only in the present rewritting of the
library, all previous versions are fine. So I wonder where went wrong?
And how to fix it from the compiler error report.
>
>
>
> Bo Persson