summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/klass_def.hpp
diff options
context:
space:
mode:
authorJoão Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br>2019-12-12 13:16:22 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-12-12 13:16:22 -0300
commite617ff441aa9cc9286846f3a49eca5ae26e85d0a (patch)
tree3f9aba198f038050d3f59d627441aaa3afa53717 /src/lib/eolian_cxx/grammar/klass_def.hpp
parent8a2ccfefe1b27f99e2848a7cf1f25ee7aee74107 (diff)
csharp: Add implicit conversion from tuples to structs.
Summary: Also generates implicit conversion for 1-field structs. Usage examples: ``` // With tuples Point2D p = (1, 2); obj.SetPoint((1, 2)); // With 1-field structs StringWrapper sw = "Must be handled by wrapper."; ``` Due to limitations of MSC compiler, implicit conversions are generated only if struct has 4 fields or less. Ref T8489. Reviewers: brunobelo, cedric, lauromoura, segfaultxavi Reviewed By: lauromoura Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T8489 Differential Revision: https://phab.enlightenment.org/D10801
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index d6969315e7..ad3b6eecbd 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -1816,7 +1816,7 @@ template <>
1816struct is_tuple<attributes::parameter_def> : std::true_type {}; 1816struct is_tuple<attributes::parameter_def> : std::true_type {};
1817template <> 1817template <>
1818struct is_tuple<attributes::event_def> : std::true_type {}; 1818struct is_tuple<attributes::event_def> : std::true_type {};
1819 1819
1820} 1820}
1821 1821
1822} } } 1822} } }