From b7d159bbfc7a8a9d7dd43566e21d77810558ef3a Mon Sep 17 00:00:00 2001 From: Arnaud Botella Date: Thu, 1 Aug 2019 14:43:52 +0200 Subject: [PATCH 1/2] Update memory_resource.h To be consistent with line 135. --- include/bitsery/ext/utils/memory_resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bitsery/ext/utils/memory_resource.h b/include/bitsery/ext/utils/memory_resource.h index c8f52a1..10f9fbc 100644 --- a/include/bitsery/ext/utils/memory_resource.h +++ b/include/bitsery/ext/utils/memory_resource.h @@ -124,7 +124,7 @@ namespace bitsery { // it just wraps our PolyAllocWithTypeId and pass 0 as typeId // and defines core functions for c++ Allocator concept, template - struct StdPolyAlloc { + class StdPolyAlloc { using value_type = T; explicit constexpr StdPolyAlloc(MemResourceBase* memResource) From 04526ff0f43efca3c5939a96d9f7c42080c0c314 Mon Sep 17 00:00:00 2001 From: Arnaud Botella Date: Thu, 1 Aug 2019 14:59:15 +0200 Subject: [PATCH 2/2] Update memory_resource.h --- include/bitsery/ext/utils/memory_resource.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/bitsery/ext/utils/memory_resource.h b/include/bitsery/ext/utils/memory_resource.h index 10f9fbc..472965a 100644 --- a/include/bitsery/ext/utils/memory_resource.h +++ b/include/bitsery/ext/utils/memory_resource.h @@ -125,6 +125,7 @@ namespace bitsery { // and defines core functions for c++ Allocator concept, template class StdPolyAlloc { + public: using value_type = T; explicit constexpr StdPolyAlloc(MemResourceBase* memResource)