Commit 038ea7c1 authored by BogDan Vatra's avatar BogDan Vatra

Add ! operator

parent 0b0cf58f
......@@ -1509,6 +1509,10 @@ volatile __attribute__((weak)) const char *flatbuffer_version_string =
inline E operator ^= (E &lhs, E rhs){\
lhs = lhs ^ rhs;\
return lhs;\
}\
inline bool operator !(E rhs) \
{\
return !bool(T(rhs)); \
}
/// @endcond
} // namespace flatbuffers
......
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