Skip to content

Commit 968e244

Browse files
authored
fix compilation for clang (sofa-framework#183)
1 parent de5263e commit 968e244

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/BeamAdapter/component/controller/InterventionalRadiologyController.inl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ void InterventionalRadiologyController<DataTypes>::init()
213213
// it should always start with zero (origin)
214214
m_nodeCurvAbs.push_back(0.0);
215215
const auto& xTips = d_xTip.getValue();
216-
for(const auto xTip : xTips | std::views::reverse)
216+
217+
//for(const auto xTip : xTips | std::views::reverse)
218+
for(std::size_t i = xTips.size() ; i > 0 ; i--)
217219
{
220+
const auto xTip = xTips[i-1];
218221
if(xTip > 0.0)
219222
{
220223
m_nodeCurvAbs.push_back(xTip);

0 commit comments

Comments
 (0)