We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 770d631 commit 9dfa53fCopy full SHA for 9dfa53f
1 file changed
src/CommonLib/EntityClass.cpp
@@ -78,7 +78,7 @@ namespace tsom
78
std::size_t propertyIndex = it->second;
79
const auto& propertyData = m_properties[propertyIndex];
80
81
- auto Deserialize = [&, propertyName = propertyName](auto dummyType)
+ auto Deserialize = [&, &propertyName = propertyName, &propertyValue = propertyValue](auto dummyType)
82
{
83
using T = std::decay_t<decltype(dummyType)>;
84
@@ -126,7 +126,7 @@ namespace tsom
126
127
NazaraAssert(propertyIndex < properties.size());
128
129
- std::visit([&](auto&& propertyValue)
+ std::visit([&, &propertyName = propertyName](auto&& propertyValue)
130
131
using T = std::decay_t<decltype(propertyValue)>;
132
using TypeExtractor = EntityPropertyTypeExtractor<T>;
0 commit comments