diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-03-19 09:14:26 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-03-19 09:14:26 +0100 |
commit | cbaf10978a8ffa98d98161aeec8d020c517b127b (patch) | |
tree | fb86a87aeae6e13903633c8bfe70ccc9730c3079 /src/dispatcher.cpp | |
parent | ae35a1644cd8f2441de73f1260c46bb0da6a1605 (diff) |
fixes for building with Sun CC
Diffstat (limited to 'src/dispatcher.cpp')
-rw-r--r-- | src/dispatcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dispatcher.cpp b/src/dispatcher.cpp index a49b598..93c5db3 100644 --- a/src/dispatcher.cpp +++ b/src/dispatcher.cpp @@ -264,7 +264,8 @@ int zmq::dispatcher_t::register_endpoint (const char *addr_, { endpoints_sync.lock (); - bool inserted = endpoints.insert (std::make_pair (addr_, socket_)).second; + bool inserted = endpoints.insert (std::make_pair (std::string (addr_), + socket_)).second; if (!inserted) { errno = EADDRINUSE; endpoints_sync.unlock (); |