Skip to content

Commit bbcfc13

Browse files
authored
Merge pull request #2816 from vibe-d/confirm_parameter_fix
Fix compilation error for Confirm!T parameters
2 parents abbbdcc + 3df3c55 commit bbcfc13

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ v0.10.2 - 2025-
1313
### Bug fixes ###
1414

1515
- Fixed parsing plural-only translations in PO files and improves error messages - [pull #2805][issue2805]
16+
- Fixed a compilation error when using `Confirm!T` parameters in a web interface - [pull #2816][issue2816]
1617

1718
[issue2804]: https://github.com/vibe-d/vibe.d/issues/2804
1819
[issue2805]: https://github.com/vibe-d/vibe.d/issues/2805
1920
[issue2806]: https://github.com/vibe-d/vibe.d/issues/2806
2021
[issue2815]: https://github.com/vibe-d/vibe.d/issues/2815
22+
[issue2816]: https://github.com/vibe-d/vibe.d/issues/2816
2123

2224

2325
v0.10.1 - 2024-09-07

web/vibe/web/web.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -998,9 +998,9 @@ private void handleRequest(string M, alias overload, C, ERROR...)(HTTPServerRequ
998998
else alias ParamBaseType = PT;
999999

10001000
static if (isInstanceOf!(Confirm, ParamBaseType)) {
1001-
enum pidx = param_names.countUntil(PT.confirmedParameter);
1002-
static assert(pidx >= 0, "Unknown confirmation parameter reference \""~PT.confirmedParameter~"\".");
1003-
static assert(pidx != i, "Confirmation parameter \""~PT.confirmedParameter~"\" may not reference itself.");
1001+
enum pidx = param_names.countUntil(ParamBaseType.confirmedParameter);
1002+
static assert(pidx >= 0, "Unknown confirmation parameter reference \""~ParamBaseType.confirmedParameter~"\".");
1003+
static assert(pidx != i, "Confirmation parameter \""~ParamBaseType.confirmedParameter~"\" may not reference itself.");
10041004

10051005
bool matched;
10061006
static if (isNullable!PT && isNullable!(PARAMS[pidx])) {

0 commit comments

Comments
 (0)