D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19147 - Reduce template bloat in std.complex by using const arguments
Summary: Reduce template bloat in std.complex by using const arguments
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 minor
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2018-08-06 22:46 UTC by Nathan S.
Modified: 2020-03-21 03:56 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 Nathan S. 2018-08-06 22:46:59 UTC
Labeling scalar arguments as const even when not logically necessary allows the same type to be inferred for a template function when called with const, non-const, & immutable scalars.
Comment 1 Nathan S. 2018-08-06 22:57:53 UTC
Pull request: https://github.com/dlang/phobos/pull/6656
Comment 2 basile-z 2018-08-07 08:38:57 UTC
take care with the tittle, this could have an impact on the change log. If you wanted to say that you handle this issue then use the "assignee" field or add the pull keyword.
Comment 3 github-bugzilla 2018-08-10 20:59:05 UTC
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/043ef8f7537b3e22b65f59480a1704e1b6f40e4d
Fix Issue 19147 - Reduce template bloat in std.complex by using const arguments

Labeling variably-typed arguments of templated functions as const
causes the same type to be inferred when the argument is const,
non-const, and immutable.

https://github.com/dlang/phobos/commit/565a51f8c6e8b703c0b625568a6f14473345f5d8
Merge pull request #6656 from n8sh/issue-19147-complex-antibloat

Fix Issue 19147 - Reduce template bloat in std.complex by using const arguments
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>