eo-cxx: Added catch-all to_c interoperability function

This commit is contained in:
Felipe Magno de Almeida 2014-07-17 14:05:19 -03:00
parent 10502307a7
commit df5f57d0ad
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@ to_c(bool x)
return x ? EINA_TRUE : EINA_FALSE;
}
template <typename T>
T to_c(T const& v)
{
return v;
}
//// From C to C++
template <typename T>