Repository: thrift Updated Branches: refs/heads/master dd971d537 -> 8f8eaf376
THRIFT-2769 std.traits.pointerTarget is deprecated Client: D Patch: David Nadlinger This closes #236 Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/8f8eaf37 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/8f8eaf37 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/8f8eaf37 Branch: refs/heads/master Commit: 8f8eaf376f3799305f5ecfe5fcee3f5c3d14b016 Parents: dd971d5 Author: Jens Geyer <[email protected]> Authored: Tue Oct 7 21:42:43 2014 +0200 Committer: Jens Geyer <[email protected]> Committed: Tue Oct 7 21:42:43 2014 +0200 ---------------------------------------------------------------------- lib/d/src/thrift/codegen/base.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/8f8eaf37/lib/d/src/thrift/codegen/base.d ---------------------------------------------------------------------- diff --git a/lib/d/src/thrift/codegen/base.d b/lib/d/src/thrift/codegen/base.d index a9150d7..35e566a 100644 --- a/lib/d/src/thrift/codegen/base.d +++ b/lib/d/src/thrift/codegen/base.d @@ -43,7 +43,7 @@ import std.algorithm : find; import std.array : empty, front; import std.conv : to; import std.exception : enforce; -import std.traits : BaseTypeTuple, isPointer, isSomeFunction, pointerTarget, +import std.traits : BaseTypeTuple, isPointer, isSomeFunction, PointerTarget, ReturnType; import thrift.base; import thrift.internal.codegen; @@ -673,7 +673,7 @@ void readStruct(T, Protocol, alias fieldMetaData = cast(TFieldMeta[])null, string readFieldCode(FieldType)(string name, short id, TReq req) { static if (pointerStruct && isPointer!FieldType) { immutable v = "(*s." ~ name ~ ")"; - alias pointerTarget!FieldType F; + alias PointerTarget!FieldType F; } else { immutable v = "s." ~ name; alias FieldType F; @@ -861,7 +861,7 @@ void writeStruct(T, Protocol, alias fieldMetaData = cast(TFieldMeta[])null, static if (pointerStruct && isPointer!FieldType) { immutable v = "(*s." ~ name ~ ")"; - alias pointerTarget!FieldType F; + alias PointerTarget!FieldType F; } else { immutable v = "s." ~ name; alias FieldType F;
