Crow添加路由的定义:
#define CROW_ROUTE(app, url) app.template route<crow::black_magic::get_parameter_tag(url)>(url)
Crow:黑魔法get_parameter_tag-CSDN博客
介绍了get_parameter_tag的作用
route的定义为:
auto route(std::string&& rule) -> typename std::invoke_result<decltype(&Router::new_rule_tagged<Tag>), Router, std::string&&>::type
{return router_.new_rule_tagged<Tag>(std::move(rule));
}