diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-10-27 04:16:02 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-10-27 04:16:48 -0700 |
commit | 60abd463ac2eaa8bc1d616d8c07880dc53d97211 (patch) | |
tree | 2353b47dca2426748005952a3d844bc149ccd387 /src/allocators.h | |
parent | d9702bcf7ca616b086c3a62a8efa0e10e9a9e5f7 (diff) | |
parent | fa7361907a0a5d6698bb7e8e45fa5ac034b81066 (diff) | |
download | bitcoin-60abd463ac2eaa8bc1d616d8c07880dc53d97211.tar.xz |
Merge pull request #5119
fa73619 boost: split stream classes out of serialize.h (Cory Fields)
Diffstat (limited to 'src/allocators.h')
-rw-r--r-- | src/allocators.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/allocators.h b/src/allocators.h index 6b69e7ae69..78a3b76d0c 100644 --- a/src/allocators.h +++ b/src/allocators.h @@ -9,6 +9,7 @@ #include <map> #include <string> #include <string.h> +#include <vector> #include <boost/thread/mutex.hpp> #include <boost/thread/once.hpp> @@ -261,4 +262,7 @@ struct zero_after_free_allocator : public std::allocator<T> { // This is exactly like std::string, but with a custom allocator. typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString; +// Byte-vector that clears its contents before deletion. +typedef std::vector<char, zero_after_free_allocator<char> > CSerializeData; + #endif // BITCOIN_ALLOCATORS_H |