Compare commits

..

No commits in common. "fc080a8ba0c471be4d1297109d7b3a0334bf5e51" and "1d2dab93bdaa003d740f1b54487c4bfc0675263c" have entirely different histories.

2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -96,6 +96,10 @@ 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);
}