diff options
author | lloyd <[email protected]> | 2011-06-13 18:03:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-06-13 18:03:42 +0000 |
commit | 083392226592438a2ac82c6e0aeaddc5a6074c26 (patch) | |
tree | 0ed162181bdc723e3694f89e0cd4dcb1fb68e66a /src | |
parent | aeeab22dfaf68aeb523e50296a7668fa25493e8e (diff) | |
parent | 36ca4c962bf963ad9f76fb2c26202c0679cbd7ae (diff) |
propagate from branch 'net.randombit.botan' (head b200c1f710e56d39764e567c005eec43448d865d)
to branch 'net.randombit.botan.c++0x' (head 527546a7d65baf5315c947602ad0937b65950cf1)
Diffstat (limited to 'src')
-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 |