mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +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
|
||||
// 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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user