Change nested_root accessor to be const function.
authorHyungjin Kim <apodictic@gmail.com>
Tue, 10 Feb 2015 06:42:38 +0000 (15:42 +0900)
committerWouter van Oortmerssen <wvo@google.com>
Wed, 11 Feb 2015 18:54:03 +0000 (10:54 -0800)
commitc9a840e935e574852804205edebd4552a9d111f1
treec48bc67e5243fd8aa2e5049772b7584ce3ab1c8e
parent620fe1c5cf23f5dd4e9d734e1029c6c772f0f811
Change nested_root accessor to be const function.

The `<field>_nested_root()` is not viable from const object. (We usually get `const Monster *`.)

Change-Id: I0d0adcb38dd974318608417ee3094c34fb9c480d
src/idl_gen_cpp.cpp
tests/monster_test_generated.h