aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/memwipe.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-01-27 17:26:58 -0800
committerRiccardo Spagni <ric@spagni.net>2018-01-27 17:26:58 -0800
commit76a6a794f99e7539e2e2d0a298b25d18197af727 (patch)
treeeb6c3cac6d2418985505498dafc70fbc11de301c /contrib/epee/include/memwipe.h
parentMerge pull request #3151 (diff)
parentRemove is_pod trait, and replace with is_standard_layout requirement (diff)
downloadmonero-76a6a794f99e7539e2e2d0a298b25d18197af727.tar.xz
Merge pull request #2969
95171614 Remove is_pod trait, and replace with is_standard_layout requirement (Lee Clagett)
Diffstat (limited to 'contrib/epee/include/memwipe.h')
-rw-r--r--contrib/epee/include/memwipe.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/contrib/epee/include/memwipe.h b/contrib/epee/include/memwipe.h
index 6e50944e6..0d8f491b7 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