mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Remove need for Unqual in EndianSwapper
This commit is contained in:
parent
c799010b64
commit
f027cbe61e
1 changed files with 3 additions and 3 deletions
|
@ -2948,12 +2948,12 @@ if (isIntegral!T || isSomeChar!T || isBoolean!T)
|
||||||
private union EndianSwapper(T)
|
private union EndianSwapper(T)
|
||||||
if (canSwapEndianness!T)
|
if (canSwapEndianness!T)
|
||||||
{
|
{
|
||||||
Unqual!T value;
|
T value;
|
||||||
ubyte[T.sizeof] array;
|
ubyte[T.sizeof] array;
|
||||||
|
|
||||||
static if (is(FloatingPointTypeOf!(Unqual!T) == float))
|
static if (is(immutable FloatingPointTypeOf!(T) == immutable float))
|
||||||
uint intValue;
|
uint intValue;
|
||||||
else static if (is(FloatingPointTypeOf!(Unqual!T) == double))
|
else static if (is(immutable FloatingPointTypeOf!(T) == immutable double))
|
||||||
ulong intValue;
|
ulong intValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue