This commit is contained in:
Alex Fabijanic 2022-04-13 21:10:56 +02:00
parent 4080ee275a
commit 7ae6b60e9f

View File

@ -522,10 +522,10 @@ ValueType AnyCast(Any& operand)
if (!result)
{
std::string s = "RefAnyCast: Failed to convert between Any types ";
if (operand._pHolder)
if (operand.content())
{
s.append(1, '(');
s.append(operand._pHolder->type().name());
s.append(operand.content()->type().name());
s.append(" => ");
s.append(typeid(ValueType).name());
s.append(1, ')');
@ -564,10 +564,10 @@ const ValueType& RefAnyCast(const Any & operand)
if (!result)
{
std::string s = "RefAnyCast: Failed to convert between Any types ";
if (operand._pHolder)
if (operand.content())
{
s.append(1, '(');
s.append(operand._pHolder->type().name());
s.append(operand.content()->type().name());
s.append(" => ");
s.append(typeid(ValueType).name());
s.append(1, ')');
@ -589,10 +589,10 @@ ValueType& RefAnyCast(Any& operand)
if (!result)
{
std::string s = "RefAnyCast: Failed to convert between Any types ";
if (operand._pHolder)
if (operand.content())
{
s.append(1, '(');
s.append(operand._pHolder->type().name());
s.append(operand.content()->type().name());
s.append(" => ");
s.append(typeid(ValueType).name());
s.append(1, ')');