diff options
author | Mark D. Roth <roth@google.com> | 2016-06-20 13:27:12 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-06-20 13:27:12 -0700 |
commit | 3da684dcacac1b5d523897b76a00d5e62e1163bd (patch) | |
tree | 2db67e60bed352ddfaaa55548f43a31a198e1bac | |
parent | 4fd2134dafc61af764b18dacee0acd8ef307dcc4 (diff) |
Add "final" to ChannelFilter class, so that compiler can un-indirect the
filter method calls.
-rw-r--r-- | include/grpc++/channel_filter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc++/channel_filter.h b/include/grpc++/channel_filter.h index 53e42a7cb8..262739929a 100644 --- a/include/grpc++/channel_filter.h +++ b/include/grpc++/channel_filter.h @@ -35,6 +35,7 @@ #define GRPCXX_CHANNEL_FILTER_H #include <grpc/grpc.h> +#include <grpc++/impl/codegen/config.h> #include <functional> #include <vector> @@ -94,7 +95,7 @@ namespace internal { // Defines static members for passing to C core. template <typename ChannelDataType, typename CallDataType> -class ChannelFilter { +class ChannelFilter GRPC_FINAL { public: static const size_t channel_data_size = sizeof(ChannelDataType); |