Skip to content

Commit dcf9faa

Browse files
committed
Use Proxy instead of opDot
1 parent 76cd4bd commit dcf9faa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

std/typecons.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ public:
163163
debug(Unique) writeln("return from Release");
164164
return u;
165165
}
166+
166167
/** Forwards member access to contents. */
167-
auto opDot() inout { return _p; }
168+
mixin Proxy!_p;
168169

169170
/**
170171
Postblit operator is undefined to prevent the cloning of $(D Unique) objects.

0 commit comments

Comments
 (0)