endian: force alignment with underlying type in value
This commit is contained in:
parent
0ce69083e6
commit
b0adff1c87
@ -217,7 +217,7 @@ namespace cruft {
|
||||
|
||||
namespace endian {
|
||||
template <scheme StorageV, typename RawT>
|
||||
struct value {
|
||||
struct alignas(RawT) value {
|
||||
constexpr RawT native (void) const { return convert<StorageV,scheme::native> (raw); }
|
||||
|
||||
operator RawT () const
|
||||
|
Loading…
Reference in New Issue
Block a user