void Misc::sendData(std::map<std::string, std::string> data) {
...
}
void Misc::loop(){
...
std::thread t1(sendData, toSend); // Reference to non-static member function must be called
...
}
static assertion failed: Wrong number of arguments for pointer-to-member
static_assert(_Varargs::value
^
1 2 3 4 5 6
D:\Qt\Tools\mingw530_32\i686-w64-mingw32\include\c++\functional:1505: error: no type
named 'type' in 'class std::result_of<std::_Mem_fn<void (Misc::*)
(std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >)>
(std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >)>'typedeftypename result_of<_Callable(_Args...)>::type result_type;
^
1 2 3 4 5 6
D:\Qt\Tools\mingw530_32\i686-w64-mingw32\include\c++\functional:1526: error: no type
named 'type' in 'class std::result_of<std::_Mem_fn<void (Misc::*)
(std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >)>
(std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >)>'
_M_invoke(_Index_tuple<_Indices...>)
^