diff options
author | Vijay Pai <vpai@google.com> | 2017-09-11 14:26:34 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2017-09-11 14:26:34 -0700 |
commit | 4433973242e21db18291263a5b41ee292002eb6f (patch) | |
tree | 0e559231eaec0afc8dfc8bb8343210442eccb20b /include/grpc++/impl/codegen | |
parent | 1c32292c7be078303f4bb59e635319773c5012c2 (diff) |
Address review comments
Diffstat (limited to 'include/grpc++/impl/codegen')
-rw-r--r-- | include/grpc++/impl/codegen/byte_buffer.h | 2 | ||||
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/include/grpc++/impl/codegen/byte_buffer.h b/include/grpc++/impl/codegen/byte_buffer.h index e6231ca243..87d390c688 100644 --- a/include/grpc++/impl/codegen/byte_buffer.h +++ b/include/grpc++/impl/codegen/byte_buffer.h @@ -1,6 +1,6 @@ /* * - * Copyright 2015 gRPC authors. + * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index 0bf33cb88f..0652d69d12 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -361,11 +361,9 @@ class MessageDeserializer; template <class M> class MessageDeserializer< M, typename std::enable_if<std::is_same< - ::grpc::Status, - decltype(SerializationTraits<M>::Deserialize( - static_cast<const ::grpc::ByteBuffer&>( - *(static_cast<const ::grpc::ByteBuffer*>(nullptr))), - static_cast<M*>(nullptr)))>::value>::type> { + ::grpc::Status, decltype(SerializationTraits<M>::Deserialize( + internal::Example<const ::grpc::ByteBuffer&>(), + internal::Example<M*>()))>::value>::type> { public: static Status Deserialize(const ByteBuffer& bbuf, M* message) { return SerializationTraits<M>::Deserialize(bbuf, message); @@ -376,8 +374,8 @@ template <class M> class MessageDeserializer< M, typename std::enable_if<std::is_same< ::grpc::Status, decltype(SerializationTraits<M>::Deserialize( - static_cast<grpc_byte_buffer*>(nullptr), - static_cast<M*>(nullptr)))>::value>::type> { + internal::Example<grpc_byte_buffer*>(), + internal::Example<M*>()))>::value>::type> { public: static Status Deserialize(const ByteBuffer& bbuf, M* message) { return SerializationTraits<M>::Deserialize( |