fixed_string: use pointers for copy to storage

This commit is contained in:
Danny Robson 2020-11-18 06:50:17 +10:00
parent 5cea4fb7b5
commit 4250e71d6e

View File

@ -26,7 +26,7 @@ namespace cruft {
constexpr
fixed_string (char const _value[N+1]) noexcept
{
std::copy_n (std::begin (_value), N, std::begin (value));
std::copy_n (_value, N, value);
}
constexpr operator char const* () const { return value; }