Commit e15da4b3 authored by Doron Somech's avatar Doron Somech

problem: compilation error on osx

parent ba20f665
......@@ -987,8 +987,10 @@ bool zmq::stream_engine_t::init_properties (properties_t & properties) {
properties.insert (std::make_pair("Peer-Address", peer_address));
// Private property to support deprecated SRCFD
std::string fd_string = static_cast<std::ostringstream*>(&(std::ostringstream() << (int)s))->str();
properties.insert (std::make_pair("__fd", fd_string));
std::ostringstream stream;
stream << (int)s;
std::string fd_string = stream.str();
properties.insert(std::make_pair("__fd", fd_string));
return true;
}
......
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