use 'template' keyword to treat 'operator ()' as a dependent template name in TaggedRule class

This commit is contained in:
Alex Butum 2014-07-08 13:14:21 +03:00
parent 205648c001
commit d7eac147fb

View File

@ -183,7 +183,7 @@ namespace crow
void operator()(std::string name, Func&& f)
{
name_ = std::move(name);
(*this).operator()<Func>(std::forward(f));
(*this).template operator()<Func>(std::forward(f));
}
response handle(const request& req, const routing_params& params)