Skip to content

Note on set_is_malloc_allowed #88

@bchretien

Description

@bchretien

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions