Xfer: Difference between revisions

From John's wiki
Jump to navigation Jump to search
(xfer)
(xfer)
Line 1: Line 1:
  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++    -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::Start()’:
  Hub.cpp:69:78: error: no matching function for call to ‘read_xml(std::stringstream, boost::property_tree::ptree&)
  Hub.cpp:68:67: error: invalid initialization of non-const reference of type ‘boost::property_tree::ptree& {aka boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> >&}’ from an rvalue of type ‘boost::property_tree::ptree {aka boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> >}
       boost::property_tree::xml_parser::read_xml(std::stringstream(message), pt);
       boost::property_tree::ptree &pt = boost::property_tree::ptree();
                                                                              ^
                                                                    ^

Revision as of 10:57, 3 September 2015

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
Hub.cpp: In member function ‘void Hub::Hub::Start()’:
Hub.cpp:68:67: error: invalid initialization of non-const reference of type ‘boost::property_tree::ptree& {aka boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> >&}’ from an rvalue of type ‘boost::property_tree::ptree {aka boost::property_tree::basic_ptree<std::basic_string<char>, std::basic_string<char> >}’
     boost::property_tree::ptree &pt = boost::property_tree::ptree();
                                                                   ^