OnShutdownDelete shadowing issue

https://github.com/google/protobuf/issues/4887
pull/4888/head
Ivan Shynkarenka 6 years ago
parent 3beb19945b
commit a3f0973979
  1. 2
      src/google/protobuf/stubs/common.h

@ -206,7 +206,7 @@ LIBPROTOBUF_EXPORT void OnShutdownRun(void (*f)(const void*), const void* arg);
template <typename T>
T* OnShutdownDelete(T* p) {
OnShutdownRun([](const void* p) { delete static_cast<const T*>(p); }, p);
OnShutdownRun([](const void* pp) { delete static_cast<const T*>(pp); }, p);
return p;
}

Loading…
Cancel
Save