diff --git a/include/fmt/format.h b/include/fmt/format.h index 7fc94652..2a16aa63 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -477,6 +477,9 @@ class truncating_iterator_default_construct_base { OutputIt out_; truncating_iterator_default_construct_base() = delete; + + explicit truncating_iterator_default_construct_base(OutputIt out) : + out_(std::move(out)) {} }; template @@ -485,6 +488,9 @@ class truncating_iterator_default_construct_base { OutputIt out_; truncating_iterator_default_construct_base() = default; + + explicit truncating_iterator_default_construct_base(OutputIt out) : + out_(std::move(out)) {} }; template class truncating_iterator_base