D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21237 - isLvalueAssignable and isRvalueAssignable should be public
Summary: isLvalueAssignable and isRvalueAssignable should be public
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-09-11 13:01 UTC by Paul Backus
Modified: 2020-09-12 12:03 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 Paul Backus 2020-09-11 13:01:24 UTC
Some types, such as types with @disabled copy constructors and types with opAssign overloads that accept the rhs only by ref, satisfy one but not the other. It would be useful for generic code to be able to distinguish these types from types that do not allow assignment at all.
Comment 1 Dlang Bot 2020-09-11 13:24:43 UTC
@pbackus created dlang/phobos pull request #7626 "Fix issue 21237: isLvalueAssignable and isRvalueAssignable should be …" fixing this issue:

- Fix issue 21237: isLvalueAssignable and isRvalueAssignable should be public

https://github.com/dlang/phobos/pull/7626
Comment 2 Dlang Bot 2020-09-12 12:03:20 UTC
dlang/phobos pull request #7626 "Fix issue 21237: isLvalueAssignable and isRvalueAssignable should be …" was merged into master:

- 7ae3e7126c2312454235c895965db34aee9f7a06 by Paul Backus:
  Fix issue 21237: isLvalueAssignable and isRvalueAssignable should be public

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