diff --git a/common/include/valptridx.h b/common/include/valptridx.h index 1220463ca..3f6759802 100644 --- a/common/include/valptridx.h +++ b/common/include/valptridx.h @@ -85,6 +85,7 @@ public: p(t.p), i(t.i) { } + valptridx_t(const vvalptridx_t::type, I, magic_constant> &t); template valptridx_t(const magic_constant &) : p(static_cast(v) < get_array().size() ? &get_array()[v] : NULL), i(v) @@ -213,6 +214,12 @@ public: } }; +template class magic_constant> +valptridx_t::valptridx_t(const vvalptridx_t::type, I, magic_constant> &t) : + p(t.p), i(t.i) +{ +} + #define _DEFINE_VALPTRIDX_SUBTYPE_USERTYPE(N,P,I,A,name,Pconst) \ static inline constexpr decltype(A) Pconst &get_global_array(P Pconst*) { return A; } \ \