res = any.GetAs(&variant);
CPPUNIT_ASSERT(res);
CPPUNIT_ASSERT(variant.GetType() == "string");
+#if wxUSE_UNICODE
CPPUNIT_ASSERT(variant.GetString() == L"ABC");
+#endif
any = vDouble;
double d = wxANY_AS(any, double);
}
wxAny any2 = any;
- CPPUNIT_ASSERT( any2.As<MyClass>().GetValue() == 15 );
+ CPPUNIT_ASSERT( wxANY_AS(any2, MyClass).GetValue() == 15 );
}
// Make sure allocations and deallocations match