Modify drogon_ctl

This commit is contained in:
antao 2018-09-10 18:06:00 +08:00
parent 2391cc1484
commit 2c1fd4cee0
2 changed files with 3 additions and 3 deletions

View File

@ -286,5 +286,5 @@ void create_view::newViewSourceFile(std::ofstream &file,const std::string &class
file<<"#else\n";
file<<"\tres->setContentTypeCode(CT_TEXT_HTML);\n";
file<<"#endif\n";
file<<"\tres->setBody("<<streamName<<".str().c_str());\n\treturn res;\n}\n";
file<<"\tres->setBody("<<streamName<<".str());\n\treturn res;\n}\n";
}

View File

@ -74,11 +74,11 @@ public:
};
typedef struct MapValue
{
int timeout=0;
size_t timeout=0;
T2 value;
std::function<void()> _timeoutCallback;
}MapValue;
void insert(const T1& key,T2&& value,int timeout=0,std::function<void()> timeoutCallback=std::function<void()>())
void insert(const T1& key,T2&& value,size_t timeout=0,std::function<void()> timeoutCallback=std::function<void()>())
{
if(timeout>0)
{