Fix ptridx move constructor delegating to ptr copy constructor

Fix a bug where the ptridx converting move constructor delegated to the
ptr converting copy constructor, since the ptr copy constructor had
filename/line arguments, the ptr move constructor did not, and the
ptridx move constructor always passed filename/line.
This commit is contained in:
Kp 2019-12-16 01:56:59 +00:00
parent ca383c1fe7
commit 5950485a6c

View file

@ -659,9 +659,9 @@ public:
{
}
template <typename rpolicy>
ptridx(ptridx<rpolicy> &&rhs DXX_VALPTRIDX_REPORT_STANDARD_LEADER_COMMA_L_DECL_VARS) :
vptr_type(static_cast<typename ptridx<rpolicy>::vptr_type &&>(rhs) DXX_VALPTRIDX_REPORT_STANDARD_LEADER_COMMA_L_PASS_VARS),
vidx_type(static_cast<typename ptridx<rpolicy>::vidx_type &&>(rhs) DXX_VALPTRIDX_REPORT_STANDARD_LEADER_COMMA_L_PASS_VARS)
ptridx(ptridx<rpolicy> &&rhs) :
vptr_type(static_cast<typename ptridx<rpolicy>::vptr_type &&>(rhs)),
vidx_type(static_cast<typename ptridx<rpolicy>::vidx_type &&>(rhs))
{
}
template <integral_type v>