aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/generated_enum_reflection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/generated_enum_reflection.h')
-rw-r--r--src/google/protobuf/generated_enum_reflection.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/google/protobuf/generated_enum_reflection.h b/src/google/protobuf/generated_enum_reflection.h
index a09a540b..2780a9b3 100644
--- a/src/google/protobuf/generated_enum_reflection.h
+++ b/src/google/protobuf/generated_enum_reflection.h
@@ -41,6 +41,8 @@
#include <string>
+#include <google/protobuf/stubs/template_util.h>
+
namespace google {
namespace protobuf {
class EnumDescriptor;
@@ -48,6 +50,10 @@ namespace protobuf {
namespace protobuf {
+// This type trait can be used to cause templates to only match proto2 enum
+// types.
+template <typename T> struct is_proto_enum : ::google::protobuf::internal::false_type {};
+
// Returns the EnumDescriptor for enum type E, which must be a
// proto-declared enum type. Code generated by the protocol compiler
// will include specializations of this template for each enum type declared.