Bug 19208 – std.bitmanip.swapEndian doesn't support floating point types

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-08-30T12:47:00Z
Last change time
2024-12-01T16:34:06Z
Keywords
pull
Assigned to
No Owner
Creator
Dennis
Moved to GitHub: phobos#10348 →

Comments

Comment #0 by dkorpel — 2018-08-30T12:47:00Z
The template canSwapEndianness is defined as "isIntegral!T || isSomeChar!T || isBoolean!T || isFloatOrDouble!T" but in the function "swapEndian(T)(T val)" it only supports an "integral value or character". I don't see why swapEndian shouldn't support floating point types when read, write, append and peak do.
Comment #1 by b2.temp — 2018-09-26T12:47:05Z
Comment #2 by robert.schadek — 2024-12-01T16:34:06Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10348 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB