From ec025d4e889e2bbf0ad4f5b838c1129b3ac74ff5 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 6 Feb 2016 22:12:54 +0000 Subject: [PATCH] Pass common highest_valid to vptr factory --- common/include/fwd-valptridx.h | 3 +++ common/include/highest_valid.h | 8 ++++++- common/include/valptridx.h | 44 +++++++++++++++++++++++++++++++++- d2x-rebirth/main/escort.cpp | 4 ++-- similar/main/object.cpp | 2 +- 5 files changed, 56 insertions(+), 5 deletions(-) diff --git a/common/include/fwd-valptridx.h b/common/include/fwd-valptridx.h index d78c7d91f..5705b512e 100644 --- a/common/include/fwd-valptridx.h +++ b/common/include/fwd-valptridx.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include "dxxsconf.h" @@ -54,6 +55,7 @@ protected: class basic_ptr; template class basic_ptridx; + class allow_end_construction; static constexpr const array_managed_type &get_array(const_pointer_type p) { @@ -64,6 +66,7 @@ protected: return get_global_array(p); } static inline void check_index_match(const_reference_type, index_type, const array_managed_type &); + template