endian: force alignment with underlying type in value

This commit is contained in:
Danny Robson 2023-11-19 09:34:27 +10:00
parent 0ce69083e6
commit b0adff1c87

View File

@ -217,7 +217,7 @@ namespace cruft {
namespace endian { namespace endian {
template <scheme StorageV, typename RawT> template <scheme StorageV, typename RawT>
struct value { struct alignas(RawT) value {
constexpr RawT native (void) const { return convert<StorageV,scheme::native> (raw); } constexpr RawT native (void) const { return convert<StorageV,scheme::native> (raw); }
operator RawT () const operator RawT () const