From da4625f4b790e4aa78f3192ca6b86725b6ad91ec Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sun, 15 Sep 2024 22:06:07 +0000 Subject: [PATCH] Add move to UnsignedCharTrait --- library/include/larra/encryption.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/include/larra/encryption.hpp b/library/include/larra/encryption.hpp index 4c87fb9..70e869d 100644 --- a/library/include/larra/encryption.hpp +++ b/library/include/larra/encryption.hpp @@ -23,6 +23,9 @@ struct UnsignedCharTrait { std::ranges::copy_n(c2, static_cast>(n), c1); return c1; } + static constexpr auto move(char_type* c1, const char_type* c2, std::size_t n) -> char_type* { + return copy(c1, c2, n); + } }; using UnsignedStringView = std::basic_string_view;