refactor: 💥 fixed_string constructor taking a single character made explicit

This commit is contained in:
Mateusz Pusz
2024-01-18 16:50:10 +01:00
parent 12aebbb08b
commit 7296238223

View File

@@ -56,7 +56,7 @@ struct basic_fixed_string {
using size_type = std::size_t; using size_type = std::size_t;
using difference_type = std::ptrdiff_t; using difference_type = std::ptrdiff_t;
constexpr explicit(false) basic_fixed_string(CharT ch) noexcept constexpr explicit basic_fixed_string(CharT ch) noexcept
requires(N == 1) requires(N == 1)
{ {
data_[0] = ch; data_[0] = ch;