Replies: 4 comments 1 reply
-
While we lack support (which #526 aims to remedy), |
Beta Was this translation helpful? Give feedback.
-
Worked! Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
You can also This works:
|
Beta Was this translation helpful? Give feedback.
-
(cppfront does but rewrites it to Presumably at some point this will work: myfunc: (inout var: Mytype);
anotherfunc: (funcpar: *(inout Mytype) -> void);
anotherfunc(myfunc&); |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a silly question on the syntax in cppfront.
I have a function like:
myfunc: (inout var: Mytype) = { … }
.I would like to pass this function
myfunc
as a parameter to another function usingstd::function
.I tried
anotherfunc: (funcpar: std::function<void(Mytype&)>)
but Cppfront does not accept the&
.If I remove the
&
then c++ complains that the types don't match.How do I declare a template of function that contains
inout
parameter in Cppfront?Thanks
Beta Was this translation helpful? Give feedback.
All reactions