← Back to index
|
Original Bugzilla link
Bug 12600 – Variant should support coercion to bool
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-20T03:13:00Z
Last change time
2014-05-31T10:48:07Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
akb825
Comments
Comment #0
by akb825 — 2014-04-20T03:13:13Z
When you attempt to coerce a Variant value to a bool (i.e. v.coerce!bool) you get the static assert "unsupported type for coercion".
Comment #1
by andrej.mitrovich — 2014-04-23T19:28:42Z
https://github.com/D-Programming-Language/phobos/pull/2111
Comment #2
by github-bugzilla — 2014-05-31T10:48:06Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/c8656c37b73bfe83e8f3ff8319319fcbf3386720
Fix Issue 12600 - Variant should support coercion to bool.
https://github.com/D-Programming-Language/phobos/commit/9636c31eb01f8481ac118a6d2c5043f25a723839
Merge pull request #2111 from AndrejMitrovic/Fix12600 Issue 12600 - Variant should support coercion to bool