felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=348a7084aff3db9ba8f009309c34b9a39a56129e

commit 348a7084aff3db9ba8f009309c34b9a39a56129e
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Thu Aug 10 15:52:25 2017 -0300

    eolian-cxx: Add workaround for clang removing const from parameters
---
 src/bindings/cxx/eo_cxx/eo_cxx_interop.hh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh 
b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
index edc68f1f39..e6b2780fe8 100644
--- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
+++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
@@ -605,6 +605,11 @@ T convert_to_return(T value, tag<T, T>)
 {
   return value;
 }
+template <typename U, typename T>
+T convert_to_return(U const value, tag<U const, T>)
+{
+  return value;
+}
 template <typename T>
 T& convert_to_return(T* value, tag<T*, T&>)
 {

-- 


Reply via email to