diff options
author | bogdan <[email protected]> | 2015-08-05 18:09:01 +0300 |
---|---|---|
committer | bogdan <[email protected]> | 2015-08-05 18:09:01 +0300 |
commit | 7677f329b5f8b4976d2c858c31a6e48d31d2db9c (patch) | |
tree | 564c4d3a2551f4390fd2f26b8a0e85f46aefd059 /src | |
parent | 63c1958b841d26184c526b54c531b0188c34ab0a (diff) |
Add template constructor to secure_allocator
This is required by the Standard for an allocator. As far as I can tell, not having it breaks compilation in MSVC 2015, at least when iterator debugging is enabled. More details here: http://stackoverflow.com/q/31802806/4326278.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/alloc/secmem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/alloc/secmem.h b/src/lib/alloc/secmem.h index 98707ad4e..453acc5d8 100644 --- a/src/lib/alloc/secmem.h +++ b/src/lib/alloc/secmem.h @@ -36,6 +36,9 @@ class secure_allocator secure_allocator() BOTAN_NOEXCEPT {} + template<typename U> + secure_allocator(const secure_allocator<U>&) BOTAN_NOEXCEPT {} + ~secure_allocator() BOTAN_NOEXCEPT {} pointer address(reference x) const BOTAN_NOEXCEPT |