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

std::function<double()> as alternative to double* #37

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

olupton
Copy link
Contributor

@olupton olupton commented Jan 17, 2023

Support recording values that are obtained using generic handles (= things that can be dereferenced to yield a double value), instead of only supporting the special case that these handles are raw pointers.
This is needed for compatibility with neuronsimulator/nrn#2027.

@olupton olupton force-pushed the olupton/generic-handles branch 3 times, most recently from cd5c174 to 034108f Compare January 23, 2023 13:40
@olupton olupton force-pushed the olupton/generic-handles branch from 034108f to ede01d9 Compare March 24, 2023 08:11
@olupton olupton marked this pull request as ready for review April 27, 2023 09:30
@jorblancoa
Copy link
Collaborator

I added a unit test, but other than that LGTM!

Copy link
Contributor

@pramodk pramodk left a comment

Choose a reason for hiding this comment

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

LGTM

@olupton
Copy link
Contributor Author

olupton commented Apr 28, 2023

Looks like the CI might need to be bumped past ubuntu 18.04

@olupton olupton force-pushed the olupton/generic-handles branch from 48b3526 to 8fbde2c Compare April 28, 2023 14:19
@olupton olupton merged commit b95d1c8 into master Apr 28, 2023
@olupton olupton deleted the olupton/generic-handles branch April 28, 2023 14:28
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