another fix to message wrapper

pull/2690/head
M. Galib Uludag 2 years ago
parent b9762b57be
commit 4769e70056

@ -189,8 +189,9 @@ private:
template<typename T> template<typename T>
struct message_wrapper struct message_wrapper
{ {
message_wrapper(const T &msg, details::source_location loc = details::source_location::current()) template<typename U = T>
: msg_{msg} message_wrapper(U&& msg, details::source_location loc = details::source_location::current())
: msg_{std::forward<U>(msg)}
, loc_{loc} , loc_{loc}
{} {}

Loading…
Cancel
Save