Fix inheritance access modifier for allocator derived types

This commit is contained in:
rexy712 2020-07-28 09:31:36 -07:00
parent a10c12c1cf
commit 55c908686f
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ namespace rexy{
}; };
template<class Allocator> template<class Allocator>
class basic_binary : private detail::hasallocator<Allocator>, public binary_base class basic_binary : protected detail::hasallocator<Allocator>, public binary_base
{ {
public: public:
using allocator_type = Allocator; using allocator_type = Allocator;

View File

@ -78,7 +78,7 @@ namespace rexy{
//Supplies all functions that string_base can't implement //Supplies all functions that string_base can't implement
template<class Allocator> template<class Allocator>
class basic_string : private detail::hasallocator<Allocator>, public string_base class basic_string : protected detail::hasallocator<Allocator>, public string_base
{ {
public: public:
using allocator_type = Allocator; using allocator_type = Allocator;