mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-14 16:36:55 +00:00
Fixed VS2010 build.
Change-Id: I3ee68c5f250d6baa02060ab2ecbc0f0fe254a9d8
This commit is contained in:
@@ -119,8 +119,9 @@ struct EquipmentUnion {
|
||||
void Reset();
|
||||
|
||||
#ifndef FLATBUFFERS_CPP98_STL
|
||||
template <typename T, typename RT = typename std::remove_reference<T>::type>
|
||||
template <typename T>
|
||||
void Set(T&& val) {
|
||||
using RT = typename std::remove_reference<T>::type;
|
||||
Reset();
|
||||
type = EquipmentTraits<typename RT::TableType>::enum_value;
|
||||
if (type != Equipment_NONE) {
|
||||
|
||||
Reference in New Issue
Block a user