fixed_string: use pointers for copy to storage
This commit is contained in:
parent
5cea4fb7b5
commit
4250e71d6e
@ -26,7 +26,7 @@ namespace cruft {
|
|||||||
constexpr
|
constexpr
|
||||||
fixed_string (char const _value[N+1]) noexcept
|
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; }
|
constexpr operator char const* () const { return value; }
|
||||||
|
Loading…
Reference in New Issue
Block a user