aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/alloc/secmem.h10
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