[ox/std] MSVC fix

This commit is contained in:
Gary Talent 2023-11-11 21:14:59 -06:00
parent 7ee52db6a1
commit ce20282be0

View File

@ -15,7 +15,7 @@
#include "writer.hpp"
template<typename T1, typename T2>
constexpr char *ox_strcpy(T1 dest, T2 src) noexcept {
constexpr T1 ox_strcpy(T1 dest, T2 src) noexcept {
using T1Type = typename ox::remove_reference<decltype(dest[0])>::type;
std::size_t i = 0;
while (src[i]) {
@ -28,7 +28,7 @@ constexpr char *ox_strcpy(T1 dest, T2 src) noexcept {
}
template<typename T1, typename T2>
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<decltype(dest[0])>::type;
std::size_t i = 0;
while (i < maxLen && src[i]) {