{"action":"created","issue":{"url":"https://api.github.com/repos/ifcquery/ifcplusplus/issues/97","repository_url":"https://api.github.com/repos/ifcquery/ifcplusplus","labels_url":"https://api.github.com/repos/ifcquery/ifcplusplus/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/ifcquery/ifcplusplus/issues/97/comments","events_url":"https://api.github.com/repos/ifcquery/ifcplusplus/issues/97/events","html_url":"https://github.com/ifcquery/ifcplusplus/issues/97","id":319281017,"number":97,"title":"TessellatedItemConverter.h  problem with gcc","user":{"login":"berndhahnebach","id":6129869,"avatar_url":"https://avatars0.githubusercontent.com/u/6129869?v=4","gravatar_id":"","url":"https://api.github.com/users/berndhahnebach","html_url":"https://github.com/berndhahnebach","followers_url":"https://api.github.com/users/berndhahnebach/followers","following_url":"https://api.github.com/users/berndhahnebach/following{/other_user}","gists_url":"https://api.github.com/users/berndhahnebach/gists{/gist_id}","starred_url":"https://api.github.com/users/berndhahnebach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndhahnebach/subscriptions","organizations_url":"https://api.github.com/users/berndhahnebach/orgs","repos_url":"https://api.github.com/users/berndhahnebach/repos","events_url":"https://api.github.com/users/berndhahnebach/events{/privacy}","received_events_url":"https://api.github.com/users/berndhahnebach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-01T18:23:56Z","updated_at":"2018-05-03T09:56:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"gcc gives an error \r\n\r\nno known conversion for argument 1 from ‘const std::tr1::shared_ptr<IfcPositiveInteger>’ to ‘int’\r\n\r\nSomeone an idea what could be done to come around this?\r\n\r\nbernd\r\n\r\n~~~\r\nhugo@ahorn:~/Documents/dev/ifcplusplus/ifcplusplus-dev/build$ make\r\n-- ------------------------------------------------------------------------\r\n-- Boost version: 1.62.0\r\n-- Boost version: 1.62.0\r\n-- Qt5 is used\r\n-- Boost version: 1.62.0\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/build\r\n[  3%] Built target carve\r\n[ 98%] Built target IfcPlusPlus\r\n[ 98%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/moc_IfcPlusPlusSystem.cpp.o\r\n[ 99%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/gui/moc_IfcTreeWidget.cpp.o\r\n[ 99%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/gui/moc_MainWindow.cpp.o\r\n[ 99%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/gui/moc_TabReadWrite.cpp.o\r\n[ 99%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/gui/moc_TabView.cpp.o\r\n[ 99%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/viewer/moc_ViewerWidget.cpp.o\r\n[ 99%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o\r\nIn file included from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:65:0,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:33,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IncludeGeometryHeaders.h:29,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IfcPlusPlusSystem.cpp:38:\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h: In member function ‘void TessellatedItemConverter::convertTessellatedItem(std::tr1::shared_ptr<IfcTessellatedItem>, std::tr1::shared_ptr<ItemShapeData>)’:\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:74:48: error: no matching function for call to ‘TessellatedItemConverter::copyVertices(const std::tr1::shared_ptr<IfcCartesianPointList3D>&, std::shared_ptr<carve::input::PolyhedronData>&)’\r\n   if(!copyVertices(vertices, carve_mesh_builder))\r\n                                                ^\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:88:7: note: candidate: bool TessellatedItemConverter::copyVertices(std::tr1::shared_ptr<IfcCartesianPointList3D>, std::tr1::shared_ptr<carve::input::PolyhedronData>)\r\n  bool copyVertices(shared_ptr<IfcCartesianPointList3D> const point_list,\r\n       ^~~~~~~~~~~~\r\n\r\n...\r\n\r\n/usr/include/c++/6/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<const std::tr1::shared_ptr<IfcPositiveInteger>*, std::vector<std::tr1::shared_ptr<IfcPositiveInteger> > >; _Predicate = TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)>]’:\r\n/usr/include/c++/6/bits/stl_algo.h:120:14:   required from ‘_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<const std::tr1::shared_ptr<IfcPositiveInteger>*, std::vector<std::tr1::shared_ptr<IfcPositiveInteger> > >; _Predicate = __gnu_cxx::__ops::_Iter_pred<TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)> >]’\r\n/usr/include/c++/6/bits/stl_algo.h:161:23:   required from ‘_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = __gnu_cxx::__normal_iterator<const std::tr1::shared_ptr<IfcPositiveInteger>*, std::vector<std::tr1::shared_ptr<IfcPositiveInteger> > >; _Predicate = __gnu_cxx::__ops::_Iter_pred<TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)> >]’\r\n/usr/include/c++/6/bits/stl_algo.h:3817:28:   required from ‘_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator<const std::tr1::shared_ptr<IfcPositiveInteger>*, std::vector<std::tr1::shared_ptr<IfcPositiveInteger> > >; _Predicate = TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)>]’\r\n/usr/include/c++/6/bits/stl_algo.h:526:47:   required from ‘bool std::none_of(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator<const std::tr1::shared_ptr<IfcPositiveInteger>*, std::vector<std::tr1::shared_ptr<IfcPositiveInteger> > >; _Predicate = TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)>]’\r\n/usr/include/c++/6/bits/stl_algo.h:544:27:   required from ‘bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator<const std::tr1::shared_ptr<IfcPositiveInteger>*, std::vector<std::tr1::shared_ptr<IfcPositiveInteger> > >; _Predicate = TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)>]’\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:279:70:   required from here\r\n/usr/include/c++/6/bits/predefined_ops.h:241:11: error: no match for call to ‘(TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)>) (const std::tr1::shared_ptr<IfcPositiveInteger>&)’\r\n  { return bool(_M_pred(*__it)); }\r\n           ^~~~~~~~~~~~~~~~~~~~\r\nIn file included from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:65:0,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:33,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IncludeGeometryHeaders.h:29,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IfcPlusPlusSystem.cpp:38:\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:254:70: note: candidate: TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)::<lambda(int)>\r\n   auto check_and_add = [&vertex_indices,&coordinate_count](auto index)\r\n                                                                      ^\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:254:70: note:   no known conversion for argument 1 from ‘const std::tr1::shared_ptr<IfcPositiveInteger>’ to ‘int’\r\nSimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/build.make:230: die Regel für Ziel „SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o“ scheiterte\r\nmake[2]: *** [SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o] Fehler 1\r\nCMakeFiles/Makefile2:196: die Regel für Ziel „SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/all“ scheiterte\r\nmake[1]: *** [SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/all] Fehler 2\r\nMakefile:127: die Regel für Ziel „all“ scheiterte\r\nmake: *** [all] Fehler 2\r\n~~~"},"comment":{"url":"https://api.github.com/repos/ifcquery/ifcplusplus/issues/comments/386245335","html_url":"https://github.com/ifcquery/ifcplusplus/issues/97#issuecomment-386245335","issue_url":"https://api.github.com/repos/ifcquery/ifcplusplus/issues/97","id":386245335,"user":{"login":"berndhahnebach","id":6129869,"avatar_url":"https://avatars0.githubusercontent.com/u/6129869?v=4","gravatar_id":"","url":"https://api.github.com/users/berndhahnebach","html_url":"https://github.com/berndhahnebach","followers_url":"https://api.github.com/users/berndhahnebach/followers","following_url":"https://api.github.com/users/berndhahnebach/following{/other_user}","gists_url":"https://api.github.com/users/berndhahnebach/gists{/gist_id}","starred_url":"https://api.github.com/users/berndhahnebach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndhahnebach/subscriptions","organizations_url":"https://api.github.com/users/berndhahnebach/orgs","repos_url":"https://api.github.com/users/berndhahnebach/repos","events_url":"https://api.github.com/users/berndhahnebach/events{/privacy}","received_events_url":"https://api.github.com/users/berndhahnebach/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T09:56:42Z","updated_at":"2018-05-03T09:56:42Z","author_association":"CONTRIBUTOR","body":"As said before your changes did do the trick. But still a few errors left, I do not really know how to trigger down ... \r\n\r\nBernd\r\n\r\n~~~\r\nhugo@ahorn:~/Documents/dev/ifcplusplus/ifcplusplus-dev/build$ make\r\n[  3%] Built target carve\r\n[ 98%] Built target IfcPlusPlus\r\nScanning dependencies of target SimpleViewerExample\r\n[ 98%] Building CXX object SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o\r\nIn file included from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/RepresentationConverter.h:65:0,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:33,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IncludeGeometryHeaders.h:29,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IfcPlusPlusSystem.cpp:38:\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h: In member function ‘void TessellatedItemConverter::convertTessellatedItem(std::tr1::shared_ptr<IfcTessellatedItem>, std::tr1::shared_ptr<ItemShapeData>)’:\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:74:48: error: no matching function for call to ‘TessellatedItemConverter::copyVertices(const std::tr1::shared_ptr<IfcCartesianPointList3D>&, std::shared_ptr<carve::input::PolyhedronData>&)’\r\n   if(!copyVertices(vertices, carve_mesh_builder))\r\n                                                ^\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:88:7: note: candidate: bool TessellatedItemConverter::copyVertices(std::tr1::shared_ptr<IfcCartesianPointList3D>, std::tr1::shared_ptr<carve::input::PolyhedronData>)\r\n  bool copyVertices(shared_ptr<IfcCartesianPointList3D> const point_list,\r\n       ^~~~~~~~~~~~\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:88:7: note:   no known conversion for argument 2 from ‘std::shared_ptr<carve::input::PolyhedronData>’ to ‘std::tr1::shared_ptr<carve::input::PolyhedronData>’\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:79:81: error: no matching function for call to ‘TessellatedItemConverter::convertPolygonalFaceSet(const std::tr1::shared_ptr<IfcPolygonalFaceSet>&, const long unsigned int&, std::shared_ptr<carve::input::PolyhedronData>&)’\r\n    convertPolygonalFaceSet( poly_face_set, coordinate_count, carve_mesh_builder );\r\n                                                                                 ^\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:109:7: note: candidate: void TessellatedItemConverter::convertPolygonalFaceSet(std::tr1::shared_ptr<IfcPolygonalFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)\r\n  void convertPolygonalFaceSet(shared_ptr<IfcPolygonalFaceSet> const poly_face_set,\r\n       ^~~~~~~~~~~~~~~~~~~~~~~\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:109:7: note:   no known conversion for argument 3 from ‘std::shared_ptr<carve::input::PolyhedronData>’ to ‘std::tr1::shared_ptr<carve::input::PolyhedronData>’\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:82:83: error: no matching function for call to ‘TessellatedItemConverter::convertTriangulatedFaceSet(const std::tr1::shared_ptr<IfcTriangulatedFaceSet>&, const long unsigned int&, std::shared_ptr<carve::input::PolyhedronData>&)’\r\n    convertTriangulatedFaceSet( tri_face_set, coordinate_count, carve_mesh_builder );\r\n                                                                                   ^\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:243:7: note: candidate: void TessellatedItemConverter::convertTriangulatedFaceSet(std::tr1::shared_ptr<IfcTriangulatedFaceSet>, size_t, std::tr1::shared_ptr<carve::input::PolyhedronData>)\r\n  void convertTriangulatedFaceSet(shared_ptr<IfcTriangulatedFaceSet> const tri_face_set,\r\n       ^~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:243:7: note:   no known conversion for argument 3 from ‘std::shared_ptr<carve::input::PolyhedronData>’ to ‘std::tr1::shared_ptr<carve::input::PolyhedronData>’\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/TessellatedItemConverter.h:84:60: error: no matching function for call to ‘ItemShapeData::addOpenOrClosedPolyhedron(std::shared_ptr<carve::input::PolyhedronData>&)’\r\n   item_data->addOpenOrClosedPolyhedron( carve_mesh_builder );\r\n                                                            ^\r\nIn file included from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryConverter.h:32:0,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IncludeGeometryHeaders.h:29,\r\n                 from /home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/SimpleViewerExample/src/IfcPlusPlusSystem.cpp:38:\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryInputData.h:125:7: note: candidate: void ItemShapeData::addOpenOrClosedPolyhedron(const std::tr1::shared_ptr<carve::input::PolyhedronData>&)\r\n  void addOpenOrClosedPolyhedron( const shared_ptr<carve::input::PolyhedronData>& poly_data )\r\n       ^~~~~~~~~~~~~~~~~~~~~~~~~\r\n/home/hugo/Documents/dev/ifcplusplus/ifcplusplus-dev/ifcplusplus/IfcPlusPlus/src/ifcpp/geometry/Carve/GeometryInputData.h:125:7: note:   no known conversion for argument 1 from ‘std::shared_ptr<carve::input::PolyhedronData>’ to ‘const std::tr1::shared_ptr<carve::input::PolyhedronData>&’\r\nSimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/build.make:230: die Regel für Ziel „SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o“ scheiterte\r\nmake[2]: *** [SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/src/IfcPlusPlusSystem.cpp.o] Fehler 1\r\nCMakeFiles/Makefile2:196: die Regel für Ziel „SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/all“ scheiterte\r\nmake[1]: *** [SimpleViewerExample/CMakeFiles/SimpleViewerExample.dir/all] Fehler 2\r\nMakefile:127: die Regel für Ziel „all“ scheiterte\r\nmake: *** [all] Fehler 2\r\nhugo@ahorn:~/Documents/dev/ifcplusplus/ifcplusplus-dev/build$ \r\n\r\n\r\n~~~"}}
{"actor":{"display_login":"berndhahnebach"}}