mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Switch to using c++20 constraints instead of std::enable_if
This commit is contained in:
parent
c00314746a
commit
414728cc71
9 changed files with 20 additions and 20 deletions
|
@ -624,8 +624,8 @@ public:
|
|||
* A version of EnqueueConnEvent() taking a variable number of arguments.
|
||||
*/
|
||||
template<class... Args>
|
||||
std::enable_if_t<std::is_convertible_v<std::tuple_element_t<0, std::tuple<Args...>>, ValPtr>> EnqueueConnEvent(
|
||||
EventHandlerPtr h, Args&&... args) {
|
||||
requires std::is_convertible_v<std::tuple_element_t<0, std::tuple<Args...>>, ValPtr>
|
||||
void EnqueueConnEvent(EventHandlerPtr h, Args&&... args) {
|
||||
return EnqueueConnEvent(h, zeek::Args{std::forward<Args>(args)...});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue