Skip to content

constify scalar arguments in std.bitmanip to reduce IFTI template bloat#7033

Merged
thewilsonator merged 1 commit intodlang:masterfrom
n8sh:bitmanipConstIFTI
May 24, 2019
Merged

constify scalar arguments in std.bitmanip to reduce IFTI template bloat#7033
thewilsonator merged 1 commit intodlang:masterfrom
n8sh:bitmanipConstIFTI

Conversation

@n8sh
Copy link
Member

@n8sh n8sh commented May 24, 2019

Fixes Issue 19899 - std.bitmanip.bitsSet should accept const arguments. This also makes swapEndian not propagate const to its return value which is arguably an improvement (see #6682 (comment)).

…loat

Fixes Issue 19899 - std.bitmanip.bitsSet should accept const arguments

This also makes `swapEndian` not propagate `const` to its return value
which is arguably an improvement
(see dlang#6682 (comment)).
@n8sh n8sh requested a review from andralex as a code owner May 24, 2019 07:12
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @n8sh!

Bugzilla references

Auto-close Bugzilla Severity Description
19899 minor std.bitmanip.bitsSet should accept const arguments

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + phobos#7033"

@thewilsonator thewilsonator merged commit 708ce11 into dlang:master May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants