You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

  1. --- a/src/metadata.hpp
  2. +++ b/src/metadata.hpp
  3. @@ -41,7 +41,7 @@ namespace zmq
  4. {
  5. public:
  6. - typedef std::map <std::string, const std::string> dict_t;
  7. + typedef std::map <std::string, std::string> dict_t;
  8. metadata_t (const dict_t &dict);
  9. virtual ~metadata_t ();
  10. --- a/src/socket_base.cpp
  11. +++ b/src/socket_base.cpp
  12. @@ -30,6 +30,7 @@
  13. #include <new>
  14. #include <string>
  15. #include <algorithm>
  16. +#include <ctype.h>
  17. #include "platform.hpp"
  18. --- a/src/stream_engine.cpp
  19. +++ b/src/stream_engine.cpp
  20. @@ -208,7 +208,7 @@ void zmq::stream_engine_t::plug (io_thre
  21. // Compile metadata.
  22. typedef metadata_t::dict_t properties_t;
  23. properties_t properties;
  24. - properties.insert(std::make_pair("Peer-Address", peer_address));
  25. + properties.insert(std::make_pair<std::string, std::string>("Peer-Address", peer_address));
  26. zmq_assert (metadata == NULL);
  27. metadata = new (std::nothrow) metadata_t (properties);
  28. }
  29. @@ -815,7 +815,7 @@ void zmq::stream_engine_t::mechanism_rea
  30. // If we have a peer_address, add it to metadata
  31. if (!peer_address.empty()) {
  32. - properties.insert(std::make_pair("Peer-Address", peer_address));
  33. + properties.insert(std::make_pair<std::string, std::string>("Peer-Address", peer_address));
  34. }
  35. // Add ZAP properties.