Skip to content

Starting over on function types - initial support for function types in <> lists #1183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 27, 2024

Conversation

hsutter
Copy link
Owner

@hsutter hsutter commented Jul 26, 2024

Closes #1177 and closes #526 (previous efforts to implement this feature that I wasn't able to get working)

Closes #343
Closes #711
Closes #718

The initial commit in this branch should generally support std::function<> style uses

Aside: I'm happy to find that C++ allows parameter names in function types, thank you WG21! I hadn't seen those used in examples so I had been expecting that cppfront would have to suppress those, but std::function< int ( std::string& param_name ) > is legal code. Sweet.

The first commit in this branch does not yet support pointer-to-function local variables...

hsutter added 4 commits July 26, 2024 13:38
…in <> lists

Should generally support std::function<> style uses

Aside: I'm happy to find that C++ allows parameter names in function types, thank you WG21! I hadn't seen those used in examples so I had been expecting that cppfront would have to suppress those, but std::function< int ( std::string& param_name ) > is legal code. Sweet.

This commit does not yet support pointer-to-function local variables...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant