diff --git a/const_fmt/format.h b/const_fmt/format.h index 091864c..994d8e0 100644 --- a/const_fmt/format.h +++ b/const_fmt/format.h @@ -2,8 +2,6 @@ #define LOGGER_FORMAT_H -#include - #include "format_impl.h" #include "parse.h" #include "utility.h" diff --git a/const_fmt/format_impl.h b/const_fmt/format_impl.h index 26a6f1a..09c4e40 100644 --- a/const_fmt/format_impl.h +++ b/const_fmt/format_impl.h @@ -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(*src++); *dst = static_cast(*src); }