mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 14:48:18 +00:00
Fixed lambda return value error on VS2010.
Change-Id: I6d0e8469bfa5b4c8a3f1cb119e186f4cf62c76ae
This commit is contained in:
@@ -317,13 +317,14 @@ void ObjectFlatBuffersTest(uint8_t *flatbuf) {
|
|||||||
// Optional: we can specify resolver and rehasher functions to turn hashed
|
// Optional: we can specify resolver and rehasher functions to turn hashed
|
||||||
// strings into object pointers and back, to implement remote references
|
// strings into object pointers and back, to implement remote references
|
||||||
// and such.
|
// and such.
|
||||||
auto resolver = flatbuffers::resolver_function_t([](void **pointer_adr,
|
auto resolver = flatbuffers::resolver_function_t(
|
||||||
flatbuffers::hash_value_t hash) {
|
[](void **pointer_adr, flatbuffers::hash_value_t hash) {
|
||||||
(void)pointer_adr;
|
(void)pointer_adr;
|
||||||
(void)hash;
|
(void)hash;
|
||||||
// Don't actually do anything, leave variable null.
|
// 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;
|
(void)pointer;
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user