better Variant casting

pull/11/head
Karroffel 2017-06-19 02:26:54 +02:00
parent ac630353cf
commit 1c5eeee512
1 changed files with 1 additions and 1 deletions

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();
} }
}; };