Skip to content
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

Menu not able to build simple item that is { ID, string, string } #132

Closed
rmpowell77 opened this issue Jul 4, 2023 · 1 comment
Closed
Milestone

Comments

@rmpowell77
Copy link
Owner

This line doesn't seem to build:

            wxUI::Item { wxID_FIND, "&Find\tCTRL-F", "No-op Find" },

It looks like it's because Item has this deduction:

    template <typename F>
    Item(wxStandardID identity, std::string const& name, F function)
        : Item(identity, name, "", function)
    {
    }

That template F gets Hungry, and will "swallow" anything, including strings.

Why not just call it the function type that we expect?

@rmpowell77 rmpowell77 added this to the v0.1.4 milestone Jul 4, 2023
@rmpowell77
Copy link
Owner Author

Fixed with #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant