Modify drogon_ctl
This commit is contained in:
parent
2391cc1484
commit
2c1fd4cee0
|
@ -286,5 +286,5 @@ void create_view::newViewSourceFile(std::ofstream &file,const std::string &class
|
||||||
file<<"#else\n";
|
file<<"#else\n";
|
||||||
file<<"\tres->setContentTypeCode(CT_TEXT_HTML);\n";
|
file<<"\tres->setContentTypeCode(CT_TEXT_HTML);\n";
|
||||||
file<<"#endif\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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,11 +74,11 @@ public:
|
||||||
};
|
};
|
||||||
typedef struct MapValue
|
typedef struct MapValue
|
||||||
{
|
{
|
||||||
int timeout=0;
|
size_t timeout=0;
|
||||||
T2 value;
|
T2 value;
|
||||||
std::function<void()> _timeoutCallback;
|
std::function<void()> _timeoutCallback;
|
||||||
}MapValue;
|
}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)
|
if(timeout>0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue