aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2015-02-20 11:47:51 +0900
committeripknHama <ipknhama@gmail.com>2015-02-20 11:50:34 +0900
commit0a7c9973496d73da87fb4e88de5a267c6d589da5 (patch)
tree55cdb92a87917b2700bdc10408a5c7a411a055cd /include/common.h
parent02f81f7eaa9b4428b33c471a020c43b2f647b91c (diff)
downloadcrow-0a7c9973496d73da87fb4e88de5a267c6d589da5.tar.gz
crow-0a7c9973496d73da87fb4e88de5a267c6d589da5.zip
working on VS2013 support
* wrap constexpr * add run-time version of get_parameter_tag
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 619f4d5..8808d6a 100644
--- a/include/common.h
+++ b/include/common.h
@@ -109,6 +109,7 @@ namespace crow
}
}
+#ifndef CROW_MSVC_WORKAROUND
constexpr crow::HTTPMethod operator "" _method(const char* str, size_t len)
{
return
@@ -122,4 +123,4 @@ constexpr crow::HTTPMethod operator "" _method(const char* str, size_t len)
crow::black_magic::is_equ_p(str, "TRACE", 5) ? crow::HTTPMethod::TRACE :
throw std::runtime_error("invalid http method");
};
-
+#endif