Skip to content

Commit

Permalink
Make FormatValue constructor explicit
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
  • Loading branch information
polter-rnd committed Nov 30, 2024
1 parent f22783c commit 0a70b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/slimlog/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class FormatValue final {
* @param formatter Reference to the formatter.
* @param value Value to be formatted.
*/
constexpr FormatValue(const CachedFormatter<T, Char>& formatter, T value)
constexpr explicit FormatValue(const CachedFormatter<T, Char>& formatter, T value)
: m_formatter(formatter)
, m_value(std::move(value))
{
Expand Down

0 comments on commit 0a70b9c

Please sign in to comment.