tashaxing / CppHttpDemo

light weight C++ httpserver and httpclient based on mongoose, also support websocket
294 stars 199 forks source link

编译问题 #8

Open liquanguo opened 3 years ago

liquanguo commented 3 years ago

// 定义http请求handler using ReqHandler = std::function<bool (std::string, std::string, mg_connection *c, OnRspCallback)>;

使用vs2010 ,报错“”错误 3 error C2873: “ReqHandler”: 符号不能用在 using 声明中......“”

请问这是什么原因啊

Sanmb commented 3 years ago

// 使用ReqHandler = httpd :: function <bool(std :: string,std :: string,mg_connection * c,OnRspCallback)>定义http请求处理程序;

使用vs2010,报错“”错误3错误C2873:“ ReqHandler”:符号不能用在使用声明中......“”

请问这是什么原因啊

C++ 11