[ox/std] MSVC fix
This commit is contained in:
parent
7ee52db6a1
commit
ce20282be0
4
deps/ox/src/ox/std/strops.hpp
vendored
4
deps/ox/src/ox/std/strops.hpp
vendored
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user