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

Add readonly[const] model to each collection's concepts #78

Open
uselessgoddess opened this issue Jul 3, 2021 · 3 comments · Fixed by #76
Open

Add readonly[const] model to each collection's concepts #78

uselessgoddess opened this issue Jul 3, 2021 · 3 comments · Fixed by #76
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@uselessgoddess
Copy link
Member

using Self = std::remove_const_t<RawSelf>;

This is what a small hack looks like
You need to define readonly models that use only const methods

@uselessgoddess uselessgoddess added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Jul 3, 2021
@uselessgoddess uselessgoddess linked a pull request Jul 3, 2021 that will close this issue
@uselessgoddess uselessgoddess removed the good first issue Good for newcomers label Jul 21, 2021
@Konard
Copy link
Member

Konard commented Jul 22, 2021

Why do you need to remove const_t from type?

@uselessgoddess
Copy link
Member Author

This is a temporary solution. It excludes readonly collections

@uselessgoddess
Copy link
Member Author

It need replace

@uselessgoddess uselessgoddess changed the title Create readonly[const] model Add readonly[const] model to each collection's concepts Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants