Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
c65c0419
Commit
c65c0419
authored
Feb 01, 2010
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue 162: generated code should #include <algorithm> for std::swap().
parent
daee0516
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
cpp_file.cc
src/google/protobuf/compiler/cpp/cpp_file.cc
+3
-1
plugin.pb.cc
src/google/protobuf/compiler/plugin.pb.cc
+3
-0
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+3
-0
No files found.
src/google/protobuf/compiler/cpp/cpp_file.cc
View file @
c65c0419
...
...
@@ -287,7 +287,9 @@ void FileGenerator::GenerateSource(io::Printer* printer) {
// want the compiler to warn in generated code.
"#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
\n
"
"#include
\"
$basename$.pb.h
\"\n
"
"
\n
"
"#include <algorithm>
\n
"
// for swap()
"
\n
"
"#include <google/protobuf/stubs/once.h>
\n
"
"#include <google/protobuf/io/coded_stream.h>
\n
"
"#include <google/protobuf/wire_format_lite_inl.h>
\n
"
,
...
...
src/google/protobuf/compiler/plugin.pb.cc
View file @
c65c0419
...
...
@@ -2,6 +2,9 @@
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "google/protobuf/compiler/plugin.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
...
...
src/google/protobuf/descriptor.pb.cc
View file @
c65c0419
...
...
@@ -2,6 +2,9 @@
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "google/protobuf/descriptor.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment