From b217644ba93cc6ba3de188f3fb53dad8f0cff4f7 Mon Sep 17 00:00:00 2001 From: an-tao Date: Tue, 16 Oct 2018 11:07:50 +0800 Subject: [PATCH] Fix a bug of any_cast --- lib/inc/drogon/HttpViewData.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inc/drogon/HttpViewData.h b/lib/inc/drogon/HttpViewData.h index 7912fcd6..37d0d34f 100755 --- a/lib/inc/drogon/HttpViewData.h +++ b/lib/inc/drogon/HttpViewData.h @@ -38,7 +38,7 @@ class HttpViewData { try { - return *(std::any_cast(&(it->second))); + return *(any_cast(&(it->second))); } catch (std::exception &e) {