https://d.puremagic.com/issues/show_bug.cgi?id=12027
--- Comment #4 from [email protected] 2014-03-01 12:48:48 PST --- (In reply to comment #3) > Also adds: > - countTrailingZeros(v) > - countBitsSet(v) > - bitsSet(v) Apparently only bitsSet is working for me: void main() { import std.stdio, std.bitmanip; BitArray b; b.init([0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0]); b.bitsSet.writeln; b.countTrailingZeros.writeln; b.countBitsSet.writeln; } It gives: test.d(7,6): Error: ScopeDsymbol test.__anonymous.__anonymous template std.bitmanip.countTrailingZeros(T)(T value) if (isIntegral!T) is private test.d(7,6): Error: template std.bitmanip.countTrailingZeros cannot deduce function from argument types !()(BitArray), candidates are: ..\dmd2\src\phobos\std\bitmanip.d(3440,14): std.bitmanip.countTrailingZeros(T)(T value) if (isIntegral!T) test.d(8,6): Error: ScopeDsymbol test.__anonymous.__anonymous template std.bitmanip.countBitsSet(T)(T value) if (isIntegral!T) is private test.d(8,6): Error: template std.bitmanip.countBitsSet cannot deduce function from argument types !()(BitArray), candidates are: ..\dmd2\src\phobos\std\bitmanip.d(3502,14): std.bitmanip.countBitsSet(T)(T value) if (isIntegral!T) -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
