aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/callback.h
diff options
context:
space:
mode:
authorSrivats P <pstavirs@users.noreply.github.com>2016-08-29 22:57:46 +0530
committerSrivats P <pstavirs@users.noreply.github.com>2016-08-29 22:57:46 +0530
commiteedc7be6803924e158e6a08471bbdf1908c7a93e (patch)
tree1bf4550c5d5d585bda78ad09f8b2c6f7a87b5211 /src/google/protobuf/stubs/callback.h
parent3d9d1a1255583bac550f7bf94f3016e8c238fa5e (diff)
downloadprotobuf-eedc7be6803924e158e6a08471bbdf1908c7a93e.tar.gz
protobuf-eedc7be6803924e158e6a08471bbdf1908c7a93e.tar.bz2
protobuf-eedc7be6803924e158e6a08471bbdf1908c7a93e.zip
Restore New*Callback into google::protobuf namespace since these are used by the service stubs code
Fixes #1966
Diffstat (limited to 'src/google/protobuf/stubs/callback.h')
-rw-r--r--src/google/protobuf/stubs/callback.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/callback.h b/src/google/protobuf/stubs/callback.h
index 87271c5e..bbd507a8 100644
--- a/src/google/protobuf/stubs/callback.h
+++ b/src/google/protobuf/stubs/callback.h
@@ -381,6 +381,8 @@ class MethodResultCallback_5_2 : public ResultCallback2<R, A1, A2> {
typename remove_reference<P5>::type p5_;
};
+} // namespace internal
+
// See Closure.
inline Closure* NewCallback(void (*function)()) {
return new internal::FunctionClosure0(function, true);
@@ -533,8 +535,6 @@ inline ResultCallback2<R, A1, A2>* NewPermanentCallback(
p2, p3, p4, p5);
}
-} // namespace internal
-
// A function which does nothing. Useful for creating no-op callbacks, e.g.:
// Closure* nothing = NewCallback(&DoNothing);
void LIBPROTOBUF_EXPORT DoNothing();