Skip to content

Commit

Permalink
Use template in place of std::function parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Oct 15, 2020
1 parent d0a98a8 commit 1237a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/terminal/adapter/DispatchTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ namespace Microsoft::Console::VirtualTerminal
return { subValues.data(), subValues.size() };
}

bool for_each(const std::function<bool(const VTParameter)> predicate) const
template<typename T>
bool for_each(const T&& predicate) const
{
// We always return at least 1 value here, since an empty parameter
// list is the equivalent of a single "default" parameter.
Expand Down

0 comments on commit 1237a0e

Please sign in to comment.