Migrate to C++17. Update sol2 to 3.3.0.

This commit is contained in:
Siarhei Fedartsou 2022-07-13 21:16:08 +03:00
parent f9ccc0c2bf
commit 55a0b746e8

View File

@ -945,7 +945,8 @@ namespace {
// `Set` is a table with keys that are actual values we are looking for and values that always `true`.
// `Sequence` is a table with keys that are indices and values that are actual values we are looking for.
std::string GetSetOrSequenceValue(const std::pair<sol::object, sol::object>& pair) {
std::string GetSetOrSequenceValue(const std::pair<sol::object, sol::object> &pair)
{
if (pair.second.is<std::string>())
{
return pair.second.as<std::string>();