Skip to content

Commit 9dfa53f

Browse files
committed
Fix compilation
1 parent 770d631 commit 9dfa53f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CommonLib/EntityClass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace tsom
7878
std::size_t propertyIndex = it->second;
7979
const auto& propertyData = m_properties[propertyIndex];
8080

81-
auto Deserialize = [&, propertyName = propertyName](auto dummyType)
81+
auto Deserialize = [&, &propertyName = propertyName, &propertyValue = propertyValue](auto dummyType)
8282
{
8383
using T = std::decay_t<decltype(dummyType)>;
8484

@@ -126,7 +126,7 @@ namespace tsom
126126
{
127127
NazaraAssert(propertyIndex < properties.size());
128128

129-
std::visit([&](auto&& propertyValue)
129+
std::visit([&, &propertyName = propertyName](auto&& propertyValue)
130130
{
131131
using T = std::decay_t<decltype(propertyValue)>;
132132
using TypeExtractor = EntityPropertyTypeExtractor<T>;

0 commit comments

Comments
 (0)