Issue 19208 - std.bitmanip.swapEndian doesn't support floating point types
Summary: std.bitmanip.swapEndian doesn't support floating point types
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2018-08-30 12:47 UTC by Dennis
Modified: 2024-12-01 16:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dennis 2018-08-30 12:47:00 UTC
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 basile-z 2018-09-26 12:47:05 UTC
pull: https://github.com/dlang/phobos/pull/6720
Comment 2 dlangBugzillaToGithub 2024-12-01 16:34:06 UTC
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