Some more fixes, hopefully GCC will stop shitting itself now

This commit is contained in:
Jérôme Leclercq
2020-08-27 23:22:13 +02:00
parent 3fe70476bb
commit 0ff0425045
3 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ namespace Nz
{
m_writer.WriteLocalVariable(value.varName, resultId);
},
[this](std::monostate)
[](std::monostate)
{
throw std::runtime_error("an internal error occurred");
}
@@ -62,11 +62,11 @@ namespace Nz
return resultId;
},
[&](const LocalVar& value) -> UInt32
[](const LocalVar& value) -> UInt32
{
throw std::runtime_error("not yet implemented");
},
[this](std::monostate) -> UInt32
[](std::monostate) -> UInt32
{
throw std::runtime_error("an internal error occurred");
}