From 536572d2f87860b59c27771b20317c9beef89fee Mon Sep 17 00:00:00 2001 From: Dennis Korpel Date: Sat, 6 Jan 2024 15:38:22 +0100 Subject: [PATCH] Remove std.conv import from bitfields template --- std/bitmanip.d | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/std/bitmanip.d b/std/bitmanip.d index b84a6762d19..e9f61919b0d 100644 --- a/std/bitmanip.d +++ b/std/bitmanip.d @@ -279,10 +279,8 @@ See_Also: $(REF BitFlags, std,typecons) */ string bitfields(T...)() { - import std.conv : to; - static assert(T.length % 3 == 0, - "Wrong number of arguments (" ~ to!string(T.length) ~ "): Must be a multiple of 3"); + "Wrong number of arguments (" ~ T.length.stringof ~ "): Must be a multiple of 3"); static foreach (i, ARG; T) {