[Issue 12600] New: Variant doesn't support coercion with bools

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 19 20:13:13 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12600

          Issue ID: 12600
           Summary: Variant doesn't support coercion with bools
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: akb825 at gmail.com

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".

--


More information about the Digitalmars-d-bugs mailing list