-
Notifications
You must be signed in to change notification settings - Fork 122
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
Indexed access #124
Comments
Hi, I like the idea and some time ago there was a request for this feature in #47. Unfortunately, I've never used indexed accessors, so they are still not implemented. A possible implementation could be generalized both for indexed and named property accessors, and it would be good to support also lambdas, similar to the current property accessor implementation. Anyway, a pull request is greatly welcomed 😃 |
Hmmmm. I implemented indexer in |
As I understand from comments to The Similar way may be used for a new |
What about setting indexed accessor on
class_
? (Simulating array behaviour, for examle).I tried to write it myself but I have no complete idea how to do it right.
Maybe something like
set_indexed_accessor(accessor<Getter, Setter>)
? (Likeproperty_
forset
)So I need some recommendations and I'll try to do it.
The text was updated successfully, but these errors were encountered: