add some code annotations
This commit is contained in:
parent
232094f01a
commit
4accacd9a6
|
@ -71,7 +71,9 @@ namespace drogon{
|
||||||
std::list<std::string> &pathParameter,
|
std::list<std::string> &pathParameter,
|
||||||
const HttpRequest& req,std::function<void (HttpResponse &)>callback,
|
const HttpRequest& req,std::function<void (HttpResponse &)>callback,
|
||||||
Values&&... values
|
Values&&... values
|
||||||
) {
|
)
|
||||||
|
{
|
||||||
|
//call this function recursively until parameter's count equals to the count of target function parameters
|
||||||
typedef typename std::remove_cv<typename std::remove_reference<nth_argument_type<sizeof...(Values)>>::type>::type ValueType;
|
typedef typename std::remove_cv<typename std::remove_reference<nth_argument_type<sizeof...(Values)>>::type>::type ValueType;
|
||||||
ValueType value;
|
ValueType value;
|
||||||
if(!pathParameter.empty())
|
if(!pathParameter.empty())
|
||||||
|
|
Loading…
Reference in New Issue