diff options
-rw-r--r-- | include/crow.h | 5 | ||||
-rw-r--r-- | tests/unittest.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/crow.h b/include/crow.h index cb9f1b3..3a49e40 100644 --- a/include/crow.h +++ b/include/crow.h @@ -16,7 +16,12 @@ #include "http_request.h" #include "http_server.h" + +#ifdef CROW_MSVC_WORKAROUND +#define CROW_ROUTE(app, url) app.route_dynamic(url) +#else #define CROW_ROUTE(app, url) app.route<crow::black_magic::get_parameter_tag(url)>(url) +#endif namespace crow { diff --git a/tests/unittest.cpp b/tests/unittest.cpp index e1c440b..d2cb231 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -933,7 +933,7 @@ TEST(simple_url_params) CROW_ROUTE(app, "/params") ([&last_url_params](const crow::request& req){ - last_url_params = move(req.url_params); + last_url_params = std::move(req.url_params); return "OK"; }); |