Switch Nazara to C++20

This commit is contained in:
Lynix
2023-11-14 14:24:28 +01:00
parent 35b4da0d4b
commit e5789d1749
17 changed files with 51 additions and 57 deletions

View File

@@ -40,7 +40,7 @@ namespace Nz
static void SetLogger(AbstractLogger* logger);
static void Write(std::string_view str);
template<typename... Args> static void Write(std::string_view str, Args&&... args);
template<typename... Args> static void Write(FormatString<Args...> fmt, Args&&... args);
static void WriteError(ErrorType type, std::string_view error, unsigned int line = 0, const char* file = nullptr, const char* function = nullptr);
NazaraStaticSignal(OnLogWrite, std::string_view /*string*/);

View File

@@ -8,9 +8,9 @@
namespace Nz
{
template<typename... Args>
void Log::Write(std::string_view str, Args&&... args)
void Log::Write(FormatString<Args...> fmt, Args&&... args)
{
return Write(Format(str, std::forward<Args>(args)...));
return Write(Format(fmt, std::forward<Args>(args)...));
}
}

View File

@@ -89,7 +89,7 @@ namespace Nz
}
else
{
File file(filePath.generic_u8string());
File file(filePath);
if (!file.Open(OpenMode::WriteOnly | OpenMode::Truncate))
{