Remove reference to nullptr to avoid compiler seeing ambiguity in gcc-4.4

build. The issue is that gcc below 4.6 require us to explicitly define nullptr,
and our explicit definition allows a potential confusion between
nullptr->unique_ptr<string> and
nullptr->char *->grpc::string->unique_ptr<string>
pull/2428/head
vjpai 10 years ago
parent f77ab15c57
commit df551611d4
  1. 2
      test/cpp/end2end/end2end_test.cc

@ -98,7 +98,7 @@ void CheckAuthContext(T* context) {
class TestServiceImpl : public ::grpc::cpp::test::util::TestService::Service {
public:
TestServiceImpl() : signal_client_(false), host_(nullptr) {}
TestServiceImpl() : signal_client_(false), host_() {}
explicit TestServiceImpl(const grpc::string& host) : signal_client_(false), host_(new grpc::string(host)) {}
Status Echo(ServerContext* context, const EchoRequest* request,

Loading…
Cancel
Save