Skip to content

Commit

Permalink
Remove call to isForwardRange!(T, E)
Browse files Browse the repository at this point in the history
This overload has been introduced in a newer compiler and unnecessarily
breaks compatibility with older ones.
  • Loading branch information
ArthaTi committed Sep 18, 2024
1 parent 28ca3ba commit 5b52595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/fluid/text.d
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5b52595

Please sign in to comment.