Removed memcpy and <cstring> #3

Merged
an.tsouchlos merged 1 commits from feature/no_cstring into master 2022-02-15 08:59:59 +00:00
2 changed files with 0 additions and 6 deletions

View File

@ -2,8 +2,6 @@
#define LOGGER_FORMAT_H
#include <cstring>
#include "format_impl.h"
#include "parse.h"
#include "utility.h"

View File

@ -96,10 +96,6 @@ constexpr inline const char* digits2_base(size_t value) {
constexpr inline void copy2(char* dst, const char* src) {
if (!std::is_constant_evaluated()) {
std::memcpy(dst, src, 2);
return;
}
*dst++ = static_cast<char>(*src++);
*dst = static_cast<char>(*src);
}