From 5950485a6c24734f02e65be57a8f04f8e458ebd9 Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 16 Dec 2019 01:56:59 +0000 Subject: [PATCH] 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. --- common/include/valptridx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/include/valptridx.h b/common/include/valptridx.h index bd49592ad..c19c85e76 100644 --- a/common/include/valptridx.h +++ b/common/include/valptridx.h @@ -659,9 +659,9 @@ public: { } template - ptridx(ptridx &&rhs DXX_VALPTRIDX_REPORT_STANDARD_LEADER_COMMA_L_DECL_VARS) : - vptr_type(static_cast::vptr_type &&>(rhs) DXX_VALPTRIDX_REPORT_STANDARD_LEADER_COMMA_L_PASS_VARS), - vidx_type(static_cast::vidx_type &&>(rhs) DXX_VALPTRIDX_REPORT_STANDARD_LEADER_COMMA_L_PASS_VARS) + ptridx(ptridx &&rhs) : + vptr_type(static_cast::vptr_type &&>(rhs)), + vidx_type(static_cast::vidx_type &&>(rhs)) { } template