Switch Nazara to C++20
This commit is contained in:
@@ -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*/);
|
||||
|
||||
@@ -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)...));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Nz
|
||||
}
|
||||
else
|
||||
{
|
||||
File file(filePath.generic_u8string());
|
||||
File file(filePath);
|
||||
|
||||
if (!file.Open(OpenMode::WriteOnly | OpenMode::Truncate))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user