Address review comments

pull/12214/head
Vijay Pai 8 years ago
parent 1c32292c7b
commit 4433973242
  1. 2
      include/grpc++/impl/codegen/byte_buffer.h
  2. 12
      include/grpc++/impl/codegen/call.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.

@ -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(

Loading…
Cancel
Save