Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cpp] Fix natural types build issues when used with GIDL
This CL includes fixes to breakages found when building FIDL files used by GIDL MaxOrdinal currently fails if the number of members is zero -- the index becomes -1 and std::get fails. This CL fixes the issue by wrapping the entire body by an "if constexpr". Clone of arrays currently fails and this CL includes a working implementation of clone. Change-Id: I8672fbf2be72871399e37d364df4458a11e8a7ca Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/636582 Fuchsia-Auto-Submit: Benjamin Prosnitz <bprosnitz@google.com> Reviewed-by: Ian McKellar <ianloic@google.com> Commit-Queue: Benjamin Prosnitz <bprosnitz@google.com>
- Loading branch information