From ce20282be0c68e8d2994f7d00a938276599c3619 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 11 Nov 2023 21:14:59 -0600 Subject: [PATCH] [ox/std] MSVC fix --- deps/ox/src/ox/std/strops.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/strops.hpp b/deps/ox/src/ox/std/strops.hpp index 80d3c97e2..cf01354c9 100644 --- a/deps/ox/src/ox/std/strops.hpp +++ b/deps/ox/src/ox/std/strops.hpp @@ -15,7 +15,7 @@ #include "writer.hpp" template -constexpr char *ox_strcpy(T1 dest, T2 src) noexcept { +constexpr T1 ox_strcpy(T1 dest, T2 src) noexcept { using T1Type = typename ox::remove_reference::type; std::size_t i = 0; while (src[i]) { @@ -28,7 +28,7 @@ constexpr char *ox_strcpy(T1 dest, T2 src) noexcept { } template -constexpr char *ox_strncpy(T1 dest, T2 src, std::size_t maxLen) noexcept { +constexpr T1 ox_strncpy(T1 dest, T2 src, std::size_t maxLen) noexcept { using T1Type = typename ox::remove_reference::type; std::size_t i = 0; while (i < maxLen && src[i]) {