build(fmt): replace fmt with std format (#191)
This commit is contained in:
@ -119,12 +119,12 @@ public:
|
||||
|
||||
auto print() const -> std::string
|
||||
{
|
||||
return fmt::format("{}:{}:{}", *begin.filename, begin.line, begin.column);
|
||||
return std::format("{}:{}:{}", *begin.filename, begin.line, begin.column);
|
||||
}
|
||||
|
||||
auto label() const -> std::string
|
||||
{
|
||||
return fmt::format("loc_{:X}", begin.line);
|
||||
return std::format("loc_{:X}", begin.line);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -119,12 +119,12 @@ public:
|
||||
|
||||
auto print() const -> std::string
|
||||
{
|
||||
return fmt::format("{}:{}:{}", *begin.filename, begin.line, begin.column);
|
||||
return std::format("{}:{}:{}", *begin.filename, begin.line, begin.column);
|
||||
}
|
||||
|
||||
auto label() const -> std::string
|
||||
{
|
||||
return fmt::format("loc_{:X}", begin.line);
|
||||
return std::format("loc_{:X}", begin.line);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <array>
|
||||
#include <deque>
|
||||
#include <filesystem>
|
||||
#include <format>
|
||||
#include <fstream>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
@ -31,13 +32,6 @@
|
||||
#include <vector>
|
||||
#include <version>
|
||||
|
||||
#ifdef __cpp_lib_format
|
||||
#include <format>
|
||||
namespace fmt = std;
|
||||
#else
|
||||
#include <fmt/core.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WINDOWS_
|
||||
#undef ERROR
|
||||
#undef IN
|
||||
|
Reference in New Issue
Block a user