diff --git a/deps/ox/src/ox/std/cstrops.hpp b/deps/ox/src/ox/std/cstrops.hpp index c746374e..171eea45 100644 --- a/deps/ox/src/ox/std/cstrops.hpp +++ b/deps/ox/src/ox/std/cstrops.hpp @@ -11,19 +11,6 @@ #include "types.hpp" #include "typetraits.hpp" -template -constexpr T1 ox_strcpy(T1 dest, T2 src) noexcept { - using T1Type = typename ox::remove_reference::type; - std::size_t i = 0; - while (src[i]) { - dest[i] = static_cast(src[i]); - ++i; - } - // set null terminator - dest[i] = 0; - return dest; -} - template constexpr T1 ox_strncpy(T1 dest, T2 src, std::size_t maxLen) noexcept { using T1Type = typename ox::remove_reference::type; @@ -72,7 +59,7 @@ constexpr int ox_strcmp(const T1 &str1, const T2 &str2) noexcept { template [[nodiscard]] -constexpr int ox_strncmp(T1 str1, T2 str2, const std::size_t maxLen) noexcept { +constexpr int ox_strncmp(T1 const&str1, T2 const&str2, const std::size_t maxLen) noexcept { auto retval = 0; std::size_t i = 0; while (i < maxLen && (str1[i] || str2[i])) {