aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/secmem.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-29 12:11:39 -0400
committerJack Lloyd <[email protected]>2017-09-29 12:11:39 -0400
commit968600292020147ceb6d07313e2c01f8f411d34b (patch)
tree2ac9ae485a0482e7009289f6c4957d4376baa7a0 /src/lib/base/secmem.h
parented2deecfbffa96df24e139f315f7d0bc9bdc55b5 (diff)
Add back size_type typedef
Lacking this seems to cause interesting issues with Apple Clang on 32-bit ARM. It seems like it implicitly defines a size_type that is the same size as size_t, but not actually size_t, so we get an unsigned long vs unsigned int mismatch on the type.
Diffstat (limited to 'src/lib/base/secmem.h')
-rw-r--r--src/lib/base/secmem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/base/secmem.h b/src/lib/base/secmem.h
index 04a67933f..eddf37c71 100644
--- a/src/lib/base/secmem.h
+++ b/src/lib/base/secmem.h
@@ -37,6 +37,7 @@ class secure_allocator
#endif
typedef T value_type;
+ typedef std::size_t size_type;
#ifdef BOTAN_BUILD_COMPILER_IS_MSVC_2013
secure_allocator() = default;