Bug 21237 – isLvalueAssignable and isRvalueAssignable should be public

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-09-11T13:01:24Z
Last change time
2020-09-12T12:03:20Z
Keywords
pull
Assigned to
No Owner
Creator
Paul Backus

Comments

Comment #0 by snarwin+bugzilla — 2020-09-11T13:01:24Z
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 by dlang-bot — 2020-09-11T13:24:43Z
@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 by dlang-bot — 2020-09-12T12:03:20Z
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