From e6d5b6f041dda40330411d319493917a09279251 Mon Sep 17 00:00:00 2001 From: Kp Date: Wed, 10 Feb 2016 03:58:05 +0000 Subject: [PATCH] Move valptridx get_count/set_count to untyped base --- common/include/valptridx.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/include/valptridx.h b/common/include/valptridx.h index 4bb48c957..4a399459b 100644 --- a/common/include/valptridx.h +++ b/common/include/valptridx.h @@ -56,8 +56,16 @@ namespace detail { class valptridx_array_type_count { -protected: unsigned count; +public: + unsigned get_count() const + { + return count; + } + void set_count(const unsigned c) + { + count = c; + } }; } @@ -567,7 +575,7 @@ protected: template class valptridx::array_managed_type : - protected detail::valptridx_array_type_count, + public detail::valptridx_array_type_count, public array { using containing_type = valptridx; @@ -595,14 +603,6 @@ public: #endif array_managed_type(const array_managed_type &) = delete; array_managed_type &operator=(const array_managed_type &) = delete; - unsigned get_count() const - { - return count; - } - void set_count(const unsigned c) - { - count = c; - } }; template