flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

C++ Parser is corrupted after move

Open serge98 opened this issue 4 months ago • 1 comments

SymbolTable instances within Parser are not moved. The following addition to SymbolTable in idl.h fixes the problem:

template<typename T> class SymbolTable { SymbolTable(const SymbolTable&) = delete; public: SymbolTable() = default; SymbolTable(SymbolTable&&) = default;

Using clang version 18.1.8/cxx20

serge98 avatar Aug 05 '25 18:08 serge98

where is the actual issue you're seeing with these missing functions? The SymbolTable class seems to be a perfectly copyable object, it just needs to not outlive the Value objects it refers to

jtdavis777 avatar Aug 27 '25 00:08 jtdavis777

closing for now as there is not enough information about if and why this might be necessary.

jtdavis777 avatar Dec 06 '25 04:12 jtdavis777