Commit 67bc5c0b authored by Dominik Charousset's avatar Dominik Charousset

Fix compiler errors on GCC/Clang

parent fc6c187e
...@@ -105,7 +105,7 @@ public: ...@@ -105,7 +105,7 @@ public:
/// @throws std::invalid_argument Thrown if `d.count() is negative. /// @throws std::invalid_argument Thrown if `d.count() is negative.
template <class Rep, class Period, template <class Rep, class Period,
class E = class E =
std::enable_if< typename std::enable_if<
std::is_integral<Rep>::value std::is_integral<Rep>::value
&& get_time_unit_from_period<Period>() != time_unit::invalid && get_time_unit_from_period<Period>() != time_unit::invalid
>::type> >::type>
......
...@@ -170,9 +170,9 @@ public: ...@@ -170,9 +170,9 @@ public:
/// @experimental /// @experimental
template <class Handle> template <class Handle>
expected<Handle> remote_spawn(const node_id& nid, std::string name, expected<Handle>
message args, remote_spawn(const node_id& nid, std::string name, message args,
duration timeout = std::chrono::seconds(60)) { duration timeout = duration(time_unit::minutes, 1)) {
if (!nid || name.empty()) if (!nid || name.empty())
return sec::invalid_argument; return sec::invalid_argument;
auto res = remote_spawn_impl(nid, name, args, auto res = remote_spawn_impl(nid, name, args,
...@@ -182,6 +182,15 @@ public: ...@@ -182,6 +182,15 @@ public:
return actor_cast<Handle>(std::move(*res)); return actor_cast<Handle>(std::move(*res));
} }
/// @experimental
template <class Handle, class Rep, class Period>
expected<Handle> remote_spawn(const node_id& nid, std::string name,
message args,
std::chrono::duration<Rep, Period> timeout) {
return remote_spawn<Handle>(nid, std::move(name), std::move(args),
duration{timeout});
}
/// Smart pointer for `network::multiplexer`. /// Smart pointer for `network::multiplexer`.
using backend_pointer = std::unique_ptr<network::multiplexer>; using backend_pointer = std::unique_ptr<network::multiplexer>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment