diff --git a/api/array.hpp b/api/array.hpp index eab77535..6556770f 100644 --- a/api/array.hpp +++ b/api/array.hpp @@ -24,11 +24,6 @@ namespace jule Array(void) = default; - Array(const std::initializer_list &src) - { - std::copy(src.begin(), src.end(), this->begin()); - } - Array(const Item &def) { std::fill(this->begin(), this->end(), def); diff --git a/api/str.hpp b/api/str.hpp index 9cfc6314..c8e2a3b5 100644 --- a/api/str.hpp +++ b/api/str.hpp @@ -74,7 +74,7 @@ namespace jule reinterpret_cast(src.c_str() + src.size())) {} Str(const char *src) : Str(reinterpret_cast(src), - reinterpret_cast(src) + std::strlen(reinterpret_cast(src))) {} + reinterpret_cast(src) + std::strlen(src)) {} Str(const jule::U8 *begin, const jule::U8 *end) {