From df5f57d0ad323faa37f1ce36f39a4f77128340f6 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Thu, 17 Jul 2014 14:05:19 -0300 Subject: [PATCH] eo-cxx: Added catch-all to_c interoperability function --- src/bindings/eo_cxx/eo_cxx_interop.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bindings/eo_cxx/eo_cxx_interop.hh b/src/bindings/eo_cxx/eo_cxx_interop.hh index 4a15949..8d17e89 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 +T to_c(T const& v) +{ + return v; +} + //// From C to C++ template -- 2.7.4