diff options
Diffstat (limited to 'src/alloc')
-rw-r--r-- | src/alloc/secmem.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index 80e8e59aa..d07aa949f 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -418,4 +418,14 @@ void zeroise(MemoryRegion<T>& vec) } +namespace std { + +template<typename T> +inline void swap(Botan::MemoryRegion<T>& x, Botan::MemoryRegion<T>& y) + { + x.swap(y); + } + +} + #endif |