Skip to content

Commit 381eef1

Browse files
Add tuple helper.
1 parent 039e80e commit 381eef1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/d/src/wit_common.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ struct Tuple(Types...) if (is(Types)) {
5050
alias expand this;
5151
}
5252

53+
inout(Tuple!Types) tuple(Types...)(inout Types vals) => inout Tuple!Types(vals);
54+
5355
mixin template WitFlags(T) if (__traits(isUnsigned, T)) {
5456
private alias F = typeof(this);
5557

0 commit comments

Comments
 (0)