1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

replace undocumented Boost API

fixes building with v1.89
This commit is contained in:
Andrey Filipenkov
2025-10-30 01:31:47 +03:00
parent dc9fd90f3e
commit 2f5e26c897

View File

@@ -77,7 +77,7 @@ namespace ERMConverter
}
else if(isMacro())
{
return boost::to_string(boost::format("M['%s']") % macro);
return (boost::format("M['%s']") % macro).str();
}
else if(isSpecial() && (name.size() == 1))
{
@@ -206,7 +206,7 @@ namespace ERMConverter
}
std::string operator()(const int & flag) const
{
return boost::to_string(boost::format("F['%d']") % flag);
return (boost::format("F['%d']") % flag).str();
}
};