Fix ConstexprString::ConstexprString(std::string_view)
This commit is contained in:
parent
6fa97fcb87
commit
555d9f9645
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ struct ConstexprString {
|
||||||
std::ranges::copy_n(data, Size, this->data.begin());
|
std::ranges::copy_n(data, Size, this->data.begin());
|
||||||
};
|
};
|
||||||
explicit constexpr ConstexprString(std::string_view 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(), data.size() > this->size() ? this->size() : data.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)) {};
|
||||||
constexpr auto size() const {
|
constexpr auto size() const {
|
||||||
|
|
Loading…
Reference in a new issue