From 20b08480317487ad60b356a5fad5fcf51cb82ce9 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 21 May 2024 12:11:00 +0200 Subject: [PATCH] refactor: 2-parameters `fixed_string` constructors are not explicit anymore --- src/core/include/mp-units/ext/fixed_string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/ext/fixed_string.h b/src/core/include/mp-units/ext/fixed_string.h index 80165c3f..1301a868 100644 --- a/src/core/include/mp-units/ext/fixed_string.h +++ b/src/core/include/mp-units/ext/fixed_string.h @@ -84,7 +84,7 @@ public: template S> requires std::convertible_to, CharT> - constexpr explicit basic_fixed_string(It begin, S end) + constexpr basic_fixed_string(It begin, S end) { gsl_Expects(std::distance(begin, end) == N); for (auto it = data_; begin != end; ++begin, ++it) *it = *begin; @@ -92,7 +92,7 @@ public: template requires std::convertible_to, CharT> - constexpr explicit basic_fixed_string(std::from_range_t, R&& r) + constexpr basic_fixed_string(std::from_range_t, R&& r) { gsl_Expects(std::ranges::size(r) == N); for (auto it = data_; auto&& v : std::forward(r)) *it++ = std::forward(v);