Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.bitmanip.swapEndian doesn't support floating point types #10348

Open
dlangBugzillaToGithub opened this issue Aug 30, 2018 · 1 comment
Open

Comments

@dlangBugzillaToGithub
Copy link

dkorpel (@dkorpel) reported this on 2018-08-30T12:47:00Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=19208

Description

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.
@dlangBugzillaToGithub
Copy link
Author

b2.temp commented on 2018-09-26T12:47:05Z

pull: https://github.com/dlang/phobos/pull/6720

@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants