Skip to content

Commit

Permalink
Suppress CTAD warning
Browse files Browse the repository at this point in the history
  • Loading branch information
netromdk committed Jul 8, 2021
1 parent 7caa8a0 commit c40866f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sigs.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ class SignalBlocker final {
bool previous = false;
};

/// Suppress CTAD warning.
template <typename T>
SignalBlocker(T) -> SignalBlocker<T>;

template <typename Ret, typename... Args>
class Signal<Ret(Args...)> final {
using Slot = std::function<Ret(Args...)>;
Expand Down

0 comments on commit c40866f

Please sign in to comment.