Revert "[C++] Removed most heap allocations in builder (#6620)" (#6659)

This reverts commit 72730ecd8a.
This commit is contained in:
Derek Bailey
2021-05-19 10:53:46 -07:00
committed by GitHub
parent f1884c66f4
commit d151dcbb9d
2 changed files with 19 additions and 58 deletions

View File

@@ -247,11 +247,6 @@ namespace flatbuffers {
#endif // __has_include
#endif // !FLATBUFFERS_HAS_STRING_VIEW
#ifndef FLATBUFFERS_GENERAL_HEAP_ALLOC_OK
// Allow heap allocations to be used
#define FLATBUFFERS_GENERAL_HEAP_ALLOC_OK 1
#endif // !FLATBUFFERS_GENERAL_HEAP_ALLOC_OK
#ifndef FLATBUFFERS_HAS_NEW_STRTOD
// Modern (C++11) strtod and strtof functions are available for use.
// 1) nan/inf strings as argument of strtod;