Hello,

While compiling a third-party code coupled with chrono, c++ compiler 
complained about the said error in ChVector3.h (also for cos and sin)
https://github.com/projectchrono/chrono/blob/main/src/chrono/core/ChVector3.h#L848

/users/hfchen/chrono/chrono/src/chrono/core/ChVector3.h:462:18: error: call 
of overloaded 'cos(double&)' is ambiguous
  462 |     res.x() = cos(norm_angle);  // 1) rot 'norm.angle'about z
  463 |     res.y() = sin(norm_angle);
  466 |     res.y() = projlen * cos(pol_angle);
  467 |     res.z() = projlen * sin(pol_angle);
  848 |     return sqrt(Length2());

I think the issue is similar to this one 
at https://gitlab.kitware.com/vtk/vtk/-/issues/17144. Could this be 
resolved similarly as well?

Thanks,
Haifei

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/de360c23-90d7-4445-aff3-dc2818288f66n%40googlegroups.com.

Reply via email to