From 5b52595aa421d57bd3ecaea2bd6dcae29e0eab75 Mon Sep 17 00:00:00 2001 From: Artha Date: Wed, 18 Sep 2024 16:09:22 +0100 Subject: [PATCH] Remove call to isForwardRange!(T, E) This overload has been introduced in a newer compiler and unnecessarily breaks compatibility with older ones. --- source/fluid/text.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/fluid/text.d b/source/fluid/text.d index e3033f92..9e606784 100644 --- a/source/fluid/text.d +++ b/source/fluid/text.d @@ -30,7 +30,9 @@ alias Text = StyledText!(); /// Draws text: handles updates, formatting and styling. struct StyledText(StyleRange = TextStyleSlice[]) { - static assert(isForwardRange!(StyleRange, TextStyleSlice), + static assert(isForwardRange!StyleRange, + "StyleRange must be a valid forward range of TextStyleSlices"); + static assert(is(ElementType!StyleRange : TextStyleSlice), "StyleRange must be a valid forward range of TextStyleSlices"); public {