mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -129,8 +129,8 @@ public:
|
|||
* A version of Enqueue() 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>> Enqueue(
|
||||
const EventHandlerPtr& h, Args&&... args) {
|
||||
requires std::is_convertible_v<std::tuple_element_t<0, std::tuple<Args...>>, ValPtr>
|
||||
void Enqueue(const EventHandlerPtr& h, Args&&... args) {
|
||||
return Enqueue(h, zeek::Args{std::forward<Args>(args)...});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue