From 616819edbe8d8f76a51eea4cb7429b40f212046e Mon Sep 17 00:00:00 2001 From: sha512sum Date: Mon, 4 Mar 2024 17:45:07 +0000 Subject: [PATCH] Fix constexpr_string.hpp: include and std::copy_n -> std::ranges::copy_n --- include/utempl/constexpr_string.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/utempl/constexpr_string.hpp b/include/utempl/constexpr_string.hpp index bc14916..caf0bb8 100644 --- a/include/utempl/constexpr_string.hpp +++ b/include/utempl/constexpr_string.hpp @@ -1,5 +1,5 @@ #pragma once -#include +#include namespace utempl { template @@ -54,8 +54,8 @@ struct ConstexprString { template inline constexpr auto operator+(const ConstexprString& other) -> ConstexprString { ConstexprString response; - std::copy_n(this->begin(), Size - 1, response.begin()); - std::copy_n(other.begin(), SSize, response.begin() + Size - 1); + std::ranges::copy_n(this->begin(), Size - 1, response.begin()); + std::ranges::copy_n(other.begin(), SSize, response.begin() + Size - 1); return response; }; inline constexpr ConstexprString(const ConstexprString&) = default;