Referring to types from other namespaces in C++ now works correctly.
authorWouter van Oortmerssen <wvo@google.com>
Tue, 19 Aug 2014 23:37:46 +0000 (16:37 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Wed, 20 Aug 2014 00:20:08 +0000 (17:20 -0700)
commitc2ba7fd251b9da9fd2f0210818cc0221682f29c4
tree91d985513194660e97b868e7c90dd96c6b5d7ad8
parentbe894f09df2383844d6c19b1d173fec105451e0f
Referring to types from other namespaces in C++ now works correctly.

Previously, it would ignore the fact that the type comes from a
different namespace. Now they are pre-declared in their own namespace,
and referenced with a qualified name if necessary.

Bug: 16851682
Change-Id: I5cb625b86d28e7436b9e93c70a0fa16a600d9884
Tested: on Linux
include/flatbuffers/idl.h
src/idl_gen_cpp.cpp
src/idl_gen_go.cpp
src/idl_gen_java.cpp
src/idl_parser.cpp
tests/include_test2.fbs
tests/monster_test_generated.h