Replies: 4 comments 1 reply
|
While we lack support (which #526 aims to remedy), |
0 replies
|
Worked! Thank you very much! |
0 replies
|
You can also This works: |
0 replies
(cppfront does but rewrites it to Presumably at some point this will work: myfunc: (inout var: Mytype);
anotherfunc: (funcpar: *(inout Mytype) -> void);
anotherfunc(myfunc&); |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
All reactions