Merge pull request #1702 from vjpai/gcc4_4

nullptr->shared_ptr typecast for gcc 4.4
pull/1668/head
David G. Quintas 10 years ago
commit 30b39ec4a3
  1. 3
      include/grpc++/config.h

@ -112,6 +112,9 @@ public:
template <class T> operator std::unique_ptr<T>() const {
return std::unique_ptr<T>(static_cast<T *>(0));
}
template <class T> operator std::shared_ptr<T>() const {
return std::shared_ptr<T>(static_cast<T *>(0));
}
operator bool() const {return false;}
private:
void operator&() const = delete;

Loading…
Cancel
Save