Commit a752d1b8 authored by Alexey Geraskin's avatar Alexey Geraskin Committed by Wouter van Oortmerssen

[C++] fix static_cast expression (#5441)

parent db972be2
......@@ -1655,7 +1655,7 @@ class FlatBufferBuilder {
extern T Pack(const S &);
typedef T (*Pack_t)(const S &);
std::vector<T> vv(len);
std::transform(v, v + len, vv.begin(), static_cast<Pack_t&>(Pack));
std::transform(v, v + len, vv.begin(), static_cast<Pack_t>(&Pack));
return CreateVectorOfStructs<T>(vv.data(), vv.size());
}
......
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