diff --git a/lib/inc/drogon/HttpApiBinder.h b/lib/inc/drogon/HttpApiBinder.h index 1d463374..ff6ed7fb 100755 --- a/lib/inc/drogon/HttpApiBinder.h +++ b/lib/inc/drogon/HttpApiBinder.h @@ -71,7 +71,9 @@ namespace drogon{ std::list &pathParameter, const HttpRequest& req,std::functioncallback, Values&&... values - ) { + ) + { + //call this function recursively until parameter's count equals to the count of target function parameters typedef typename std::remove_cv>::type>::type ValueType; ValueType value; if(!pathParameter.empty())