diff options
author | Lee Clagett <code@leeclagett.com> | 2017-12-19 20:30:02 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2018-01-18 02:26:19 -0500 |
commit | 951716146fc288b60604ba1b93b34032f37a47d8 (patch) | |
tree | 8341cfc1d7bc693072c3b89842140d78be85765f /contrib/epee/include/memwipe.h | |
parent | Merge pull request #3091 (diff) | |
download | monero-951716146fc288b60604ba1b93b34032f37a47d8.tar.xz |
Remove is_pod trait, and replace with is_standard_layout requirement
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/include/memwipe.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/contrib/epee/include/memwipe.h b/contrib/epee/include/memwipe.h index c3b4ce8ab..3864b3ebf 100644 --- a/contrib/epee/include/memwipe.h +++ b/contrib/epee/include/memwipe.h @@ -67,18 +67,14 @@ namespace tools { } }; + template<typename T> + T& unwrap(scrubbed<T>& src) { return src; } + + template<typename T> + const T& unwrap(scrubbed<T> const& src) { return src; } + template <class T, size_t N> using scrubbed_arr = scrubbed<std::array<T, N>>; } // namespace tools -// Partial specialization for std::is_pod<tools::scrubbed<T>> so that it can -// pretend to be the containted type in those contexts. -namespace std -{ - template<class t_scrubbee> - struct is_pod<tools::scrubbed<t_scrubbee>> { - static const bool value = is_pod<t_scrubbee>::value; - }; -} - #endif // __cplusplus |