Skip to content

Commit

Permalink
Fixed ambiguous call on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Aug 14, 2024
1 parent 03993c4 commit 4c55bad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions binding/matlab/Matlab_LocalMarkers.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ void Matlab_LocalMarkers( int, mxArray *plhs[],

// Récupérer les marqueurs selon que l'on veut tous ou seulement anatomiques ou techniques
unsigned int nMarkers(0); // Nombre de marqueurs
std::vector<BIORBD_NAMESPACE::rigidbody::NodeSegment>
markers_tp; // récupérer les marqueurs
std::vector<BIORBD_NAMESPACE::rigidbody::NodeSegment> markers_tp; // récupérer les marqueurs
if (!type.tolower().compare("all")) {
nMarkers = model->nbMarkers();
markers_tp = model->BIORBD_NAMESPACE::rigidbody::Markers::markers(removeAxes);
// We need to call the pointer function as it is otherwised considered ambiguous
auto markerFcn = static_cast<std::vector<BIORBD_NAMESPACE::rigidbody::NodeSegment>(BIORBD_NAMESPACE::rigidbody::Markers::*)(bool) const>(&BIORBD_NAMESPACE::rigidbody::Markers::markers);
markers_tp = (model->*markerFcn)(removeAxes);
} else if (!type.tolower().compare("anatomical")) {
nMarkers = model->nbAnatomicalMarkers();
markers_tp = model->BIORBD_NAMESPACE::rigidbody::Markers::anatomicalMarkers(removeAxes);
Expand Down

0 comments on commit 4c55bad

Please sign in to comment.