Fix for libstdc++ with clang
This commit is contained in:
parent
42619d15a8
commit
b325c54968
3 changed files with 3 additions and 4 deletions
|
@ -51,10 +51,9 @@ set(CPM_USE_LOCAL_PACKAGES OFF)
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME fmt
|
NAME fmt
|
||||||
URL
|
URL
|
||||||
"https://github.com/linuxnyasha/fmt_import/archive/refs/heads/linuxnyasha-patch-1.zip"
|
"https://github.com/fmtlib/fmt/releases/download/11.0.2/fmt-11.0.2.zip"
|
||||||
EXCLUDE_FROM_ALL ON
|
EXCLUDE_FROM_ALL ON
|
||||||
OPTIONS "FMT_MODULE ON"
|
OPTIONS "FMT_MODULE ON"
|
||||||
# Fixes for fmt module and constexpr fmt::formatted_size
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CPM_USE_LOCAL_PACKAGES ${TMP})
|
set(CPM_USE_LOCAL_PACKAGES ${TMP})
|
||||||
|
|
|
@ -32,7 +32,7 @@ struct ConstexprString {
|
||||||
constexpr ConstexprString(const char (&data)[Size]) : data{} { // NOLINT
|
constexpr ConstexprString(const char (&data)[Size]) : data{} { // NOLINT
|
||||||
std::ranges::copy_n(data, Size, this->data.begin());
|
std::ranges::copy_n(data, Size, this->data.begin());
|
||||||
};
|
};
|
||||||
explicit constexpr ConstexprString(std::string data) : data{} {
|
explicit constexpr ConstexprString(std::string_view data) : data{} {
|
||||||
std::ranges::copy_n(data.begin(), Size, this->data.begin());
|
std::ranges::copy_n(data.begin(), Size, this->data.begin());
|
||||||
};
|
};
|
||||||
explicit constexpr ConstexprString(std::array<char, Size> data) : data(std::move(data)) {};
|
explicit constexpr ConstexprString(std::array<char, Size> data) : data(std::move(data)) {};
|
||||||
|
|
|
@ -12,7 +12,7 @@ import utempl.type_list;
|
||||||
import utempl.overloaded;
|
import utempl.overloaded;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#include <optional>
|
||||||
#include <utempl/constexpr_string.hpp>
|
#include <utempl/constexpr_string.hpp>
|
||||||
#include <utempl/overloaded.hpp>
|
#include <utempl/overloaded.hpp>
|
||||||
#include <utempl/tuple.hpp>
|
#include <utempl/tuple.hpp>
|
||||||
|
|
Loading…
Reference in a new issue