aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-17 14:05:19 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-18 18:57:14 -0300
commitdf5f57d0ad323faa37f1ce36f39a4f77128340f6 (patch)
tree33a4bbcebe99d35e97f9e3041260343577eefde8 /src
parenteina-cxx: Fixed includ'ing list and array containers and fixed constructor (diff)
downloadefl-df5f57d0ad323faa37f1ce36f39a4f77128340f6.tar.gz
eo-cxx: Added catch-all to_c interoperability function
Diffstat (limited to 'src')
-rw-r--r--src/bindings/eo_cxx/eo_cxx_interop.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bindings/eo_cxx/eo_cxx_interop.hh b/src/bindings/eo_cxx/eo_cxx_interop.hh
index 4a159495fc..8d17e89902 100644
--- a/src/bindings/eo_cxx/eo_cxx_interop.hh
+++ b/src/bindings/eo_cxx/eo_cxx_interop.hh
@@ -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>