mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 00:08:02 +02:00
Problem: Solaris Studio does not convert from char * to string
Solution: do it explicitly to fix build on Solaris 10/11 with the Sun compiler
This commit is contained in:
@@ -783,7 +783,7 @@ int zmq::socket_base_t::connect (const char *addr_)
|
||||
last_endpoint.assign (addr_);
|
||||
|
||||
// remember inproc connections for disconnect
|
||||
inprocs.ZMQ_MAP_INSERT_OR_EMPLACE (addr_, new_pipes[0]);
|
||||
inprocs.ZMQ_MAP_INSERT_OR_EMPLACE (std::string (addr_), new_pipes[0]);
|
||||
|
||||
options.connected = true;
|
||||
return 0;
|
||||
@@ -982,7 +982,7 @@ void zmq::socket_base_t::add_endpoint (const char *addr_,
|
||||
{
|
||||
// Activate the session. Make it a child of this socket.
|
||||
launch_child (endpoint_);
|
||||
endpoints.ZMQ_MAP_INSERT_OR_EMPLACE (addr_,
|
||||
endpoints.ZMQ_MAP_INSERT_OR_EMPLACE (std::string (addr_),
|
||||
endpoint_pipe_t (endpoint_, pipe));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user