Merge pull request #2857

7193b89f Scrub keys from memory just before scope end. (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-12-17 13:00:11 +02:00
commit a3a8343051
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
6 changed files with 60 additions and 23 deletions

View file

@ -108,7 +108,7 @@ namespace epee
template<typename T>
constexpr bool has_padding() noexcept
{
return !std::is_pod<T>() || alignof(T) != 1;
return !std::is_pod<T>::value || alignof(T) != 1;
}
//! \return Cast data from `src` as `span<const std::uint8_t>`.