Skip to content

Conversation

@AlexHarker
Copy link
Contributor

This is desirable as it allows differentiation outside of the client / parameter set of what will touch object state (which applying constraints does not).

This will aid in reasoning about threading things in other places.

@AlexHarker AlexHarker requested a review from weefuzzy August 11, 2023 12:51
Copy link
Member

@weefuzzy weefuzzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems cromulent, thanks.

@AlexHarker AlexHarker force-pushed the parameter-set-const-correctness branch from 49b79b7 to d7c9347 Compare August 11, 2023 15:06
@AlexHarker
Copy link
Contributor Author

Thanks @weefuzzy - are you happy with the further additions before I merge? The most salient one is the enable_if_t refactor (I couldn't get the method const any other way). This was suggested by @lewardo as an alternative incantation, but I cannot say I ever really feel I understand the details of std::enable_if_t

@AlexHarker AlexHarker changed the title Methods applying constraints are now const Appropriate client methods are now const Aug 11, 2023
@weefuzzy
Copy link
Member

Should be equivalent 😬 I think the difference is in the context in which the method is enabled / disabled, so that in the first case it was too 'late' to be consty. Or something.

@AlexHarker
Copy link
Contributor Author

@tremblap - these changes are pretty minimal (there are a lot, but they shouldn't do anything and if they did the compiler should test them) but given the number can you give them a spin in your preferred methods before merging?

@AlexHarker AlexHarker requested a review from tremblap August 11, 2023 15:40
@tremblap tremblap merged commit 755eae3 into flucoma:main Aug 16, 2023
jamesb93 pushed a commit to jamesb93/flucoma-core that referenced this pull request Aug 16, 2023
* Methods applying constraints are now const

* Const correctness for further applyConstraint(s) / descriptorAt() methods

* algorithm and client latency() or initialized() should be const

* Appropriate client methods made const
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

Successfully merging this pull request may close these issues.

3 participants