move [[ ]] to calling sites (#6914)

This commit is contained in:
Derek Bailey
2021-11-11 10:31:15 -08:00
committed by GitHub
parent 6c8c291559
commit 3fab0c6ee4
3 changed files with 4 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ template<typename T> class Vector {
uoffset_t size() const { return EndianScalar(length_); }
// Deprecated: use size(). Here for backwards compatibility.
FLATBUFFERS_ATTRIBUTE(deprecated("use size() instead"))
FLATBUFFERS_ATTRIBUTE([[deprecated("use size() instead")]])
uoffset_t Length() const { return size(); }
typedef typename IndirectHelper<T>::return_type return_type;