summaryrefslogtreecommitdiff
path: root/asl/logging/logging.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/logging/logging.hpp')
-rw-r--r--asl/logging/logging.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/asl/logging/logging.hpp b/asl/logging/logging.hpp
index 9ff0d08..9c74b31 100644
--- a/asl/logging/logging.hpp
+++ b/asl/logging/logging.hpp
@@ -48,7 +48,11 @@ class DefaultLogger : public DefaultLoggerBase
W m_writer;
public:
- explicit constexpr DefaultLogger(W&& writer) : m_writer{ASL_FWD(writer)} {}
+ template<typename U>
+ explicit constexpr DefaultLogger(U&& writer)
+ requires constructible_from<W, U&&>
+ : m_writer{std::forward<U>(writer)}
+ {}
constexpr void log(const message& m) override
{