diff options
author | lloyd <[email protected]> | 2011-06-13 18:03:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-06-13 18:03:33 +0000 |
commit | 36ca4c962bf963ad9f76fb2c26202c0679cbd7ae (patch) | |
tree | 1ecaf0c2c43b17d276e2083a49a7c36d806d2a13 /src/alloc | |
parent | b145e593616e83a4c124bba70d451ef0f03c5f3f (diff) |
Add std::swap specialization for memory containers
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 |