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.
Uh oh!
There was an error while loading. Please reload this page.
-
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
myfuncas 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
inoutparameter in Cppfront?Thanks
Beta Was this translation helpful? Give feedback.
All reactions