endian: add explicit 'native' query for endian::value
This commit is contained in:
parent
26841db5e0
commit
def21dbd3f
@ -214,6 +214,8 @@ namespace cruft {
|
|||||||
return convert<StorageV,scheme::native> (raw);
|
return convert<StorageV,scheme::native> (raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ValueT native (void) const { return *this; }
|
||||||
|
|
||||||
decltype(auto) operator+ () const { return +this->operator ValueT (); }
|
decltype(auto) operator+ () const { return +this->operator ValueT (); }
|
||||||
|
|
||||||
ValueT operator<< (size_t s) const { return convert<StorageV,scheme::native> (raw) << s; }
|
ValueT operator<< (size_t s) const { return convert<StorageV,scheme::native> (raw) << s; }
|
||||||
|
Loading…
Reference in New Issue
Block a user