Skip to content

Commit

Permalink
Fix -Wundefined-inline error when using SharedCtor() or SharedDtor() (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
georgthegreat committed Apr 28, 2021
1 parent 2a11e89 commit a48e005
Show file tree
Hide file tree
Showing 13 changed files with 116 additions and 116 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/any.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/google/protobuf/api.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/cpp/cpp_message.cc
Expand Up @@ -1341,8 +1341,8 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* printer) {
format(
"int GetCachedSize() const final { return _cached_size_.Get(); }"
"\n\nprivate:\n"
"inline void SharedCtor();\n"
"inline void SharedDtor();\n"
"void SharedCtor();\n"
"void SharedDtor();\n"
"void SetCachedSize(int size) const$ full_final$;\n"
"void InternalSwap($classname$* other);\n");

Expand Down
16 changes: 8 additions & 8 deletions src/google/protobuf/compiler/plugin.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

108 changes: 54 additions & 54 deletions src/google/protobuf/descriptor.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a48e005

Please sign in to comment.