Small fixes to the core C++ FlatBuffers implementation.
authorWouter van Oortmerssen <wvo@google.com>
Tue, 15 Jul 2014 23:27:44 +0000 (16:27 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Mon, 21 Jul 2014 23:40:39 +0000 (16:40 -0700)
commit9143a93312b65955511838fafddf56301716be41
tree84aa5254807eee3029a8738a18f731815a2fe84b
parent74d5f3701fd19ca13b8fe69d1cf54002e11416da
Small fixes to the core C++ FlatBuffers implementation.

- Ensured weak linkage with the version string is not used on Windows,
  especially cygwin (which throws a linker error).
- Avoided a VS debug error for taking the address of the first element
  of an empty vector.
- Made copy/assignment constructors for downward_vector and
  FlatBufferBuilder private, to avoid people unintentionally making
  expensive copies.
- Using the more correct _WIN32 instead of WIN32

Change-Id: I801b5c8b159e3721af6d1ef0978a3247ba168bab
Tested: on Windows (VS + Cygwin) and Linux.
include/flatbuffers/flatbuffers.h
src/flatc.cpp