www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19899] New: std.bitmanip.bitsSet should accept const arguments

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

          Issue ID: 19899
           Summary: std.bitmanip.bitsSet should accept const arguments
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

The following currently fails to compile:
----
void main()
{
    import std.bitmanip : bitsSet;
    const rawBits = 123;
    auto b = bitsSet(rawBits);
}
----

--
May 24 2019