From 2aa1746bb9cca561ffcc7990ab10b0dd24c75c1b Mon Sep 17 00:00:00 2001 From: HedgehogInTheCPP Date: Tue, 18 Aug 2026 18:35:13 +0300 Subject: [PATCH] try to apply std everywhere is possible. --- include/fast_float/digit_comparison.h | 4 ++-- include/fast_float/float_common.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/fast_float/digit_comparison.h b/include/fast_float/digit_comparison.h index ad8f195..8e7a348 100644 --- a/include/fast_float/digit_comparison.h +++ b/include/fast_float/digit_comparison.h @@ -172,7 +172,7 @@ skip_zeros(UC const *&first, UC const *last) noexcept { if (!is_constant_evaluated()) { while (std::distance(first, last) >= int_cmp_len()) { uint64_t val; - ::memcpy(&val, first, sizeof(uint64_t)); + std::memcpy(&val, first, sizeof(uint64_t)); if (val != int_cmp_zeros()) { break; } @@ -196,7 +196,7 @@ is_truncated(UC const *first, UC const *last) noexcept { if (!is_constant_evaluated()) { while (std::distance(first, last) >= int_cmp_len()) { uint64_t val; - ::memcpy(&val, first, sizeof(uint64_t)); + std::memcpy(&val, first, sizeof(uint64_t)); if (val != int_cmp_zeros()) { return true; } diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 1c252ca..8b7ef20 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -384,14 +384,14 @@ fastfloat_strncasecmp3(UC const *actual_mixedcase, mask = 0x0000002000000020; } if FASTFLOAT_CONSTEXPR17 (sizeof(UC) == 1 || sizeof(UC) == 2) { - ::memcpy(&val1, actual_mixedcase, 3 * sizeof(UC)); - ::memcpy(&val2, expected_lowercase, 3 * sizeof(UC)); + std::memcpy(&val1, actual_mixedcase, 3 * sizeof(UC)); + std::memcpy(&val2, expected_lowercase, 3 * sizeof(UC)); val1 |= mask; val2 |= mask; return val1 == val2; } else if FASTFLOAT_CONSTEXPR17 (sizeof(UC) == 4) { - ::memcpy(&val1, actual_mixedcase, 2 * sizeof(UC)); - ::memcpy(&val2, expected_lowercase, 2 * sizeof(UC)); + std::memcpy(&val1, actual_mixedcase, 2 * sizeof(UC)); + std::memcpy(&val2, expected_lowercase, 2 * sizeof(UC)); val1 |= mask; if (val1 != val2) { return false;