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
22e87071
Commit
22e87071
authored
Oct 17, 2016
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lambda return value error on VS2010.
Change-Id: I6d0e8469bfa5b4c8a3f1cb119e186f4cf62c76ae
parent
606098ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
test.cpp
tests/test.cpp
+4
-3
No files found.
tests/test.cpp
View file @
22e87071
...
...
@@ -317,13 +317,14 @@ void ObjectFlatBuffersTest(uint8_t *flatbuf) {
// Optional: we can specify resolver and rehasher functions to turn hashed
// strings into object pointers and back, to implement remote references
// and such.
auto
resolver
=
flatbuffers
::
resolver_function_t
(
[](
void
**
pointer_adr
,
flatbuffers
::
hash_value_t
hash
)
{
auto
resolver
=
flatbuffers
::
resolver_function_t
(
[](
void
**
pointer_adr
,
flatbuffers
::
hash_value_t
hash
)
{
(
void
)
pointer_adr
;
(
void
)
hash
;
// Don't actually do anything, leave variable null.
});
auto
rehasher
=
flatbuffers
::
rehasher_function_t
([](
void
*
pointer
)
{
auto
rehasher
=
flatbuffers
::
rehasher_function_t
(
[](
void
*
pointer
)
->
flatbuffers
::
hash_value_t
{
(
void
)
pointer
;
return
0
;
});
...
...
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