diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 19:24:35 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 19:24:35 +1000 |
commit | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (patch) | |
tree | 829e760821fb887470ba2a820d309db1428f7f17 /source/core/StarException.hpp | |
parent | c9e889723b7af832322d178975e6e440d6cd3ae5 (diff) |
Change formatting to use fmtlib (STILL NEED TO CHANGE TO FMT SYNTAX!)
Diffstat (limited to 'source/core/StarException.hpp')
-rw-r--r-- | source/core/StarException.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/StarException.hpp b/source/core/StarException.hpp index 7e6fe3e..4774dd2 100644 --- a/source/core/StarException.hpp +++ b/source/core/StarException.hpp @@ -8,7 +8,7 @@ namespace Star { class StarException : public std::exception { public: template <typename... Args> - static StarException format(char const* fmt, Args const&... args); + static StarException format(fmt::format_string<Args...> fmt, Args const&... args); StarException() noexcept; virtual ~StarException() noexcept; @@ -72,7 +72,7 @@ void fatalException(std::exception const& e, bool showStackTrace); class ClassName : public BaseName { \ public: \ template <typename... Args> \ - static ClassName format(char const* fmt, Args const&... args) { \ + static ClassName format(fmt::format_string<Args...> fmt, Args const&... args) { \ return ClassName(strf(fmt, args...)); \ } \ ClassName() : BaseName(#ClassName, std::string()) {} \ @@ -91,7 +91,7 @@ STAR_EXCEPTION(IOException, StarException); STAR_EXCEPTION(MemoryException, StarException); template <typename... Args> -StarException StarException::format(char const* fmt, Args const&... args) { +StarException StarException::format(fmt::format_string<Args...> fmt, Args const&... args) { return StarException(strf(fmt, args...)); } |