From c3611ff2d29bd4730a73aa05951a946b0df5a405 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Thu, 19 May 2016 15:30:07 +0800 Subject: [PATCH] fix an issue that any_cast returns null if value type has cv-specifier --- include/nana/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nana/any.hpp b/include/nana/any.hpp index 491169fc..ed711146 100644 --- a/include/nana/any.hpp +++ b/include/nana/any.hpp @@ -150,7 +150,7 @@ namespace nana if (!operand) return nullptr; - auto holder = dynamic_cast*>(operand->content_); + auto holder = dynamic_cast::type>*>(operand->content_); return (holder ? &holder->value : nullptr); }