File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ template visit(alias visitor, bool forceAllTypes = true)
165165 else
166166 assert (0 , variantNulllExceptionMsg);
167167 static foreach (i, T; V._Types)
168- static if (forceAllTypes || __traits(compiles, { return visitor(variant.trustedGet! T, forward! args); } ))
168+ static if (forceAllTypes || __traits(compiles, visitor(variant.trustedGet! T, forward! args)))
169169 {
170170 case i + 1 :
171171 return visitor (variant.trustedGet! T, forward! args);
@@ -197,7 +197,7 @@ template optionalVisit(alias visitor)
197197 switch (variant.type)
198198 {
199199 static foreach (i, T; V._Types)
200- static if (__traits(compiles, { result = visitor(variant.trustedGet! T, forward! args); } ))
200+ static if (__traits(compiles, result = visitor(variant.trustedGet! T, forward! args)))
201201 {
202202 case i + 1 :
203203 result = visitor(variant.trustedGet! T, forward! args);
You can’t perform that action at this time.
0 commit comments