fix an issue that any_cast returns null if value type has cv-specifier
This commit is contained in:
parent
a30eef53ec
commit
c3611ff2d2
@ -150,7 +150,7 @@ namespace nana
|
||||
if (!operand)
|
||||
return nullptr;
|
||||
|
||||
auto holder = dynamic_cast<any::holder<Value>*>(operand->content_);
|
||||
auto holder = dynamic_cast<any::holder<typename std::decay<Value>::type>*>(operand->content_);
|
||||
return (holder ? &holder->value : nullptr);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user