aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/routing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/routing.h b/include/routing.h
index 7def7ca..3261134 100644
--- a/include/routing.h
+++ b/include/routing.h
@@ -294,7 +294,11 @@ namespace crow
// enable_if Arg1 == request && Arg2 == response
// enable_if Arg1 == request && Arg2 != resposne
// enable_if Arg1 != request
+#ifdef CROW_MSVC_WORKAROUND
+ template <typename Func, size_t ... Indices>
+#else
template <typename Func, unsigned ... Indices>
+#endif
std::function<void(const request&, response&, const routing_params&)>
wrap(Func f, black_magic::seq<Indices...>)
{