mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-07 11:24:32 +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:
@@ -503,7 +503,8 @@ int zmq::ctx_t::register_endpoint (const char *addr_,
|
||||
scoped_lock_t locker (endpoints_sync);
|
||||
|
||||
const bool inserted =
|
||||
endpoints.ZMQ_MAP_INSERT_OR_EMPLACE (addr_, endpoint_).second;
|
||||
endpoints.ZMQ_MAP_INSERT_OR_EMPLACE (std::string (addr_), endpoint_)
|
||||
.second;
|
||||
if (!inserted) {
|
||||
errno = EADDRINUSE;
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user