Commit bf30622e authored by Dominik Charousset's avatar Dominik Charousset

provide an remote_actor overload using std::string

parent 38e43d8c
...@@ -691,6 +691,13 @@ void publish(actor_ptr whom, std::uint16_t port); ...@@ -691,6 +691,13 @@ void publish(actor_ptr whom, std::uint16_t port);
*/ */
actor_ptr remote_actor(const char* host, std::uint16_t port); actor_ptr remote_actor(const char* host, std::uint16_t port);
/**
* @copydoc remote_actor(const char*,std::uint16_t)
*/
inline actor_ptr remote_actor(const std::string& host, std::uint16_t port) {
return remote_actor(host.c_str(), port);
}
} // namespace cppa } // namespace cppa
#endif // CPPA_HPP #endif // CPPA_HPP
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