Two small fixes for clang/Darwin build

On clang/Darwin, the array member `arr_` in StringLiteral was not
considered initalized when constructed using "". Adding default
initialization fixed the issue.

On clang/Darwin, std::string was not defined in Result.hpp. Including
<string> fixed the issue.
This commit is contained in:
Mark Melton
2024-01-12 16:43:13 -05:00
parent cc3460cee7
commit 6a65d01a26
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@
#include <ranges>
#include <span>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
#include <variant>
+1 -1
View File
@@ -28,7 +28,7 @@ struct StringLiteral {
return std::string_view(std::data(arr_), N - 1);
}
std::array<char, N - 1> arr_;
std::array<char, N - 1> arr_{};
};
template <size_t N1, size_t N2>