Fixed lambda return value error on VS2010.

Change-Id: I6d0e8469bfa5b4c8a3f1cb119e186f4cf62c76ae
parent 606098ca
...@@ -317,13 +317,14 @@ void ObjectFlatBuffersTest(uint8_t *flatbuf) { ...@@ -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;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment