0_0_17693723_1903.cpp: In function 'int main()':
0_0_17693723_1903.cpp:240:29: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
else if (trim(string(line)) == "RESET")
^
0_0_17693723_1903.cpp:19:8: note: in passing argument 1 of 'std::string trim(std::string&)'
string trim(string &s)
^
0_0_17693723_1903.cpp:255:38: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
string vn = trim(string(line + 5));
^
0_0_17693723_1903.cpp:19:8: note: in passing argument 1 of 'std::string trim(std::string&)'
string trim(string &s)
^
0_0_17693723_1903.cpp:271:38: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
string vn = trim(string(line, i));
^
0_0_17693723_1903.cpp:19:8: note: in passing argument 1 of 'std::string trim(std::string&)'
string trim(string &s)
^
0_0_17693723_1903.cpp:272:68: error: 'strlen' was not declared in this scope
ExpressPtr ptr = ExpressPtr(Express::Prase(i + 2, strlen(i + 2)));
^
|