better Variant casting

This commit is contained in:
Karroffel 2017-06-19 02:26:54 +02:00
parent ac630353cf
commit 1c5eeee512

View File

@ -66,7 +66,7 @@ template<class T>
struct _ArgCast { struct _ArgCast {
static T _arg_cast(Variant a) static T _arg_cast(Variant a)
{ {
return (T) a; return a.operator T();
} }
}; };