Use fmt store instead of ToString fallback
Thanks to @jonathanpoelen for the idea
This commit is contained in:
committed by
Jérôme Leclercq
parent
a741672a51
commit
ab8bac2575
21
include/Nazara/Core/Format.hpp
Normal file
21
include/Nazara/Core/Format.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Core module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_CORE_FORMAT_HPP
|
||||
#define NAZARA_CORE_FORMAT_HPP
|
||||
|
||||
#include <NazaraUtils/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Config.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
template<typename... Args> std::string Format(std::string_view str, Args&&... args);
|
||||
}
|
||||
|
||||
#include <Nazara/Core/Format.inl>
|
||||
|
||||
#endif // NAZARA_CORE_FORMAT_HPP
|
||||
Reference in New Issue
Block a user