mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Remove is_pod trait, and replace with is_standard_layout requirement
This commit is contained in:
parent
35d5aa36c9
commit
951716146f
3 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue