Replace std::result_of with std::invoke_result
This commit is contained in:
parent
940c2bb07e
commit
379b1e53a0
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include <psemek/bt/node.hpp>
|
||||
#include <psemek/bt/assert.hpp>
|
||||
|
||||
|
|
@ -18,7 +20,7 @@ namespace psemek::bt
|
|||
using typename node_type::finished;
|
||||
using typename node_type::status;
|
||||
|
||||
static_assert(std::is_same_v<std::result_of_t<ActionFn(Time, Args...)>, void>, "bt::action result type must be void");
|
||||
static_assert(std::is_same_v<std::invoke_result_t<ActionFn, Time, Args...>, void>, "bt::action result type must be void");
|
||||
|
||||
action_node(ActionFn && action_fn)
|
||||
: action_fn_(std::move(action_fn))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue