Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
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
flatbuffers
Commits
f4a5c9de
Commit
f4a5c9de
authored
Apr 04, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed VS assignment constructor warning.
parent
2f7f50b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
flatbuffers.h
include/flatbuffers/flatbuffers.h
+4
-4
No files found.
include/flatbuffers/flatbuffers.h
View file @
f4a5c9de
...
...
@@ -1117,14 +1117,14 @@ FLATBUFFERS_FINAL_CLASS
bool
force_defaults_
;
// Serialize values equal to their defaults anyway.
struct
StringOffsetCompare
{
StringOffsetCompare
(
const
vector_downward
&
buf
)
:
buf_
(
buf
)
{}
StringOffsetCompare
(
const
vector_downward
&
buf
)
:
buf_
(
&
buf
)
{}
bool
operator
()
(
const
Offset
<
String
>
&
a
,
const
Offset
<
String
>
&
b
)
const
{
auto
stra
=
reinterpret_cast
<
const
String
*>
(
buf_
.
data_at
(
a
.
o
));
auto
strb
=
reinterpret_cast
<
const
String
*>
(
buf_
.
data_at
(
b
.
o
));
auto
stra
=
reinterpret_cast
<
const
String
*>
(
buf_
->
data_at
(
a
.
o
));
auto
strb
=
reinterpret_cast
<
const
String
*>
(
buf_
->
data_at
(
b
.
o
));
return
strncmp
(
stra
->
c_str
(),
strb
->
c_str
(),
std
::
min
(
stra
->
size
(),
strb
->
size
())
+
1
)
<
0
;
}
const
vector_downward
&
buf_
;
const
vector_downward
*
buf_
;
};
// For use with CreateSharedString. Instantiated on first use only.
...
...
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