From 55c908686f3c9bcd1dd0890a20fe4914a73f602d Mon Sep 17 00:00:00 2001 From: rexy712 Date: Tue, 28 Jul 2020 09:31:36 -0700 Subject: [PATCH] Fix inheritance access modifier for allocator derived types --- include/rexy/binary_base.hpp | 2 +- include/rexy/string_base.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rexy/binary_base.hpp b/include/rexy/binary_base.hpp index 840bfdc..669462f 100644 --- a/include/rexy/binary_base.hpp +++ b/include/rexy/binary_base.hpp @@ -62,7 +62,7 @@ namespace rexy{ }; template - class basic_binary : private detail::hasallocator, public binary_base + class basic_binary : protected detail::hasallocator, public binary_base { public: using allocator_type = Allocator; diff --git a/include/rexy/string_base.hpp b/include/rexy/string_base.hpp index 1832c26..31ebabc 100644 --- a/include/rexy/string_base.hpp +++ b/include/rexy/string_base.hpp @@ -78,7 +78,7 @@ namespace rexy{ //Supplies all functions that string_base can't implement template - class basic_string : private detail::hasallocator, public string_base + class basic_string : protected detail::hasallocator, public string_base { public: using allocator_type = Allocator;