1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Use stringstream until std::format is available

Part of #12489
This commit is contained in:
Garrett Leach
2025-03-19 23:08:48 -05:00
parent 37be543c4c
commit 89515edbd8

View File

@@ -23,7 +23,7 @@
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <format>
#include <sstream>
namespace OpenRCT2::Guard
{
@@ -60,7 +60,11 @@ namespace OpenRCT2::Guard
if (expression)
return;
std::string message = std::format("Assertion failed in {}:{}", location.function_name(), location.line());
std::stringstream messageStream;
messageStream << "Assertion failed in " << location.function_name() << ":" << location.line();
std::string message = messageStream.str();
Assert(expression, message.c_str());
}