Skip to content

Compilation fails with OCCT v8_0_0 #68

@thierry-FreeBSD

Description

@thierry-FreeBSD

Compilation of Topologic v6.0.3 fails with OpenCascade v8_0_0 with the following errors:

/wrkdirs/usr/ports/math/topologic/work/Topologic-6.0.3/TopologicCore/src/CellComplex.cpp:116:34: error: no viable conversion from 'NCollection_StlIterator<[3 * ...], true>' to 'NCollection_StlIterator<[3 * ...], false>'
  116 |                 TopTools_ListOfShape::iterator occtSolidIterator = rkOcctSolids.begin();
      |                                                ^                   ~~~~~~~~~~~~~~~~~~~~
/usr/local/include/OpenCASCADE/NCollection_StlIterator.hxx:43:3: note: candidate constructor not viable: no known conversion from 'const_iterator' (aka 'NCollection_StlIterator<std::forward_iterator_tag, NCollection_TListIterator<TopoDS_Shape>, TopoDS_Shape, true>') to 'const NCollection_TListIterator<TopoDS_Shape> &' for 1st argument
   43 |   NCollection_StlIterator(const BaseIterator& theIterator)
      |   ^                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/OpenCASCADE/NCollection_StlIterator.hxx:49:3: note: candidate constructor not viable: no known conversion from 'const_iterator' (aka 'NCollection_StlIterator<std::forward_iterator_tag, NCollection_TListIterator<TopoDS_Shape>, TopoDS_Shape, true>') to 'const NCollection_StlIterator<forward_iterator_tag, NCollection_TListIterator<TopoDS_Shape>, TopoDS_Shape, false> &' for 1st argument
   49 |   NCollection_StlIterator(
      |   ^
   50 |     const NCollection_StlIterator<Category, BaseIterator, ItemType, false>& theIterator)
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/math/topologic/work/Topologic-6.0.3/TopologicCore/src/CellComplex.cpp:148:29: error: invalid operands to binary expression ('TopTools_ListOfShape::iterator' (aka 'NCollection_StlIterator<std::forward_iterator_tag, NCollection_TListIterator<TopoDS_Shape>, TopoDS_Shape, false>') and 'const_iterator' (aka 'NCollection_StlIterator<std::forward_iterator_tag, NCollection_TListIterator<TopoDS_Shape>, TopoDS_Shape, true>'))
  148 |                         for (; occtSolidIterator != rkOcctSolids.end(); occtSolidIterator++)
      |                                ~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/__variant/monostate.h:38:45: note: candidate function not viable: no known conversion from 'TopTools_ListOfShape::iterator' (aka 'NCollection_StlIterator<std::forward_iterator_tag, NCollection_TListIterator<TopoDS_Shape>, TopoDS_Shape, false>') to 'monostate' for 1st argument

Full log attached:
topologic-space-modeling-library-6.0.3_5.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions