Xfer: Difference between revisions

From John's wiki
Jump to navigation Jump to search
(xfer)
(xfer)
Line 1: Line 1:
boost::property_tree::ptree pt;
boost::property_tree::ptree &ref_pt = pt;
std::stringstream stream(message);
boost::property_tree::xml_parser::read_xml( stream, ref_pt );
Next problem:
Next problem:


  g++    -c -g -I.. -I../trunk -std=c++11 -MMD -MP -MF "build/Debug/GNU-Linux-x86/Hub.o.d" -o build/Debug/GNU-Linux-x86/Hub.o Hub.cpp
  g++-5   -c -g -I.. -I../trunk -std=c++11 -MMD -MP -MF "build/Debug/GNU-Linux-x86/Hub.o.d" -o build/Debug/GNU-Linux-x86/Hub.o Hub.cpp
  Hub.cpp: In member function ‘void Hub::Hub::Start()’:
  Hub.cpp: In member function ‘void Hub::Hub::MonitorSocket(zmq::context_t*, std::string)’:
  Hub.cpp:79:15: error: use of deleted function ‘std::basic_stringstream<char>& std::basic_stringstream<char>::operator=(const std::basic_stringstream<char>&)’
  Hub.cpp:110:54: error: no matching function for call to ‘Core::Utility::ReadZmqEvent(zmq::socket_t&, zmq_event_t*, char [1025])’
      Response = ProcessParameter(Store, pt);
    while (!Core::Utility::ReadZmqEvent(s, &event, addr))
                ^
                                                      ^


See here: http://stackoverflow.com/questions/12015899/why-are-move-semantics-for-a-class-containing-a-stdstringstream-causing-compil
See here: http://stackoverflow.com/questions/12015899/why-are-move-semantics-for-a-class-containing-a-stdstringstream-causing-compil

Revision as of 13:37, 3 September 2015

Next problem:

g++-5    -c -g -I.. -I../trunk -std=c++11 -MMD -MP -MF "build/Debug/GNU-Linux-x86/Hub.o.d" -o build/Debug/GNU-Linux-x86/Hub.o Hub.cpp
Hub.cpp: In member function ‘void Hub::Hub::MonitorSocket(zmq::context_t*, std::string)’:
Hub.cpp:110:54: error: no matching function for call to ‘Core::Utility::ReadZmqEvent(zmq::socket_t&, zmq_event_t*, char [1025])’
   while (!Core::Utility::ReadZmqEvent(s, &event, addr))
                                                      ^

See here: http://stackoverflow.com/questions/12015899/why-are-move-semantics-for-a-class-containing-a-stdstringstream-causing-compil