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

Note on set_is_malloc_allowed #88

Closed
bchretien opened this issue Apr 6, 2015 · 0 comments
Closed

Note on set_is_malloc_allowed #88

bchretien opened this issue Apr 6, 2015 · 0 comments
Labels
Milestone

Comments

@bchretien
Copy link
Member

We should wrap the calls to/reimplement Eigen::set_is_malloc_allowed since it modifies a static variable in an Eigen method, and a different variable may be updated when someone using RobOptim wants to update the same variable:

inline bool is_malloc_allowed_impl(bool update, bool new_value = false)
{
  static bool value = true;
  if (update == 1)
    value = new_value;
  return value;
}
@bchretien bchretien added the bug label Apr 6, 2015
@bchretien bchretien added this to the 3.1 release milestone Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant