compile-error fix for 'clang50-linux-x86_64 CXX_RT=glibcxx_dynamic OS_SDK=ubuntu-16 USE_STL_SYSTEM=yes pic';
@@ -56,10 +56,10 @@ namespace NEnumSerializationRuntime {
}
} else {
for (const TEnumStringPair& it : namesInitializer) {
- mapValueToName.emplace(it.Key, it.Name);
+ mapValueToName.emplace(it.Key, TString(it.Name));
}
for (const TEnumStringPair& it : valuesInitializer) {
- mapNameToValue.emplace(it.Name, it.Key);
+ mapNameToValue.emplace(TString(it.Name), it.Key);
}
}
Names = std::move(mapValueToName);
