Possible build fix for aarch64
This commit is contained in:
parent
b3ecb69ec0
commit
f4b3600ee5
4 changed files with 163 additions and 4 deletions
|
@ -29,9 +29,9 @@ namespace wren {
|
|||
class ModuleAndName;
|
||||
|
||||
namespace detail {
|
||||
template <dhandy::bt::string S>
|
||||
template <dhandy::bt::string Str>
|
||||
struct ModuleAndNameStaticStorage {
|
||||
static constexpr const auto value = S;
|
||||
static constexpr dhandy::bt::string value = Str;
|
||||
};
|
||||
|
||||
[[gnu::const]]
|
||||
|
@ -148,7 +148,9 @@ namespace wren {
|
|||
template <dhandy::bt::string S1, dhandy::bt::string S2>
|
||||
consteval ModuleAndName make_module_and_name() noexcept {
|
||||
using dhandy::bt::string;
|
||||
using StaticStorage = detail::ModuleAndNameStaticStorage<S1 + string("\0") + S2>;
|
||||
using detail::ModuleAndNameStaticStorage;
|
||||
constexpr string null_char{"\0"};
|
||||
using StaticStorage = ModuleAndNameStaticStorage<S1 + null_char + S2>;
|
||||
|
||||
constexpr const char* data = StaticStorage::value.data();
|
||||
constexpr std::uint16_t s1_len = static_cast<std::uint16_t>(S1.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue