THRIFT-3739 Deprecation warning in codegen/base.d
This closes #946
diff --git a/lib/d/src/thrift/codegen/base.d b/lib/d/src/thrift/codegen/base.d
index 0e94335..db54992 100644
--- a/lib/d/src/thrift/codegen/base.d
+++ b/lib/d/src/thrift/codegen/base.d
@@ -592,7 +592,7 @@
* the wire without altering their definitions.
*/
void readStruct(T, Protocol, alias fieldMetaData = cast(TFieldMeta[])null,
- bool pointerStruct = false)(ref T s, Protocol p) if (isTProtocol!Protocol)
+ bool pointerStruct = false)(auto ref T s, Protocol p) if (isTProtocol!Protocol)
{
mixin({
string code;