From 951716146fc288b60604ba1b93b34032f37a47d8 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Tue, 19 Dec 2017 20:30:02 -0500 Subject: Remove is_pod trait, and replace with is_standard_layout requirement --- contrib/epee/include/memwipe.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'contrib/epee/include/memwipe.h') 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 + T& unwrap(scrubbed& src) { return src; } + + template + const T& unwrap(scrubbed const& src) { return src; } + template using scrubbed_arr = scrubbed>; } // namespace tools -// Partial specialization for std::is_pod> so that it can -// pretend to be the containted type in those contexts. -namespace std -{ - template - struct is_pod> { - static const bool value = is_pod::value; - }; -} - #endif // __cplusplus -- cgit v1.2.3