compiling 'examples' fails

Bug #1863933 reported by Christian Rauch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cgal (Ubuntu)
New
Undecided
Unassigned

Bug Description

The compilation of `examples.tar.gz` in package `libcgal-demo` fails:

```
Scanning dependencies of target deform_mesh_for_botsch08_format_sre_arap
[ 89%] Building CXX object examples/Surface_mesh_deformation/CMakeFiles/deform_mesh_for_botsch08_format_sre_arap.dir/deform_mesh_for_botsch08_format_sre_arap.cpp.o
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp: In function ‘unsigned int intersect(const Mesh&, const Mesh&)’:
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:90:40: error: no matching function for call to ‘transform(std::vector<Box>::iterator, std::vector<Box>::iterator, std::back_insert_iterator<std::vector<const Box*> >, <unresolved overloaded function type>)’
                  &boost::addressof<Box>);
                                        ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:4295:5: note: candidate: template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)
     transform(_InputIterator __first, _InputIterator __last,
     ^~~~~~~~~
/usr/include/c++/7/bits/stl_algo.h:4295:5: note: template argument deduction/substitution failed:
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:90:40: note: could not resolve address from overloaded function ‘& addressof<Box>’
                  &boost::addressof<Box>);
                                        ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:4332:5: note: candidate: template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)
     transform(_InputIterator1 __first1, _InputIterator1 __last1,
     ^~~~~~~~~
/usr/include/c++/7/bits/stl_algo.h:4332:5: note: template argument deduction/substitution failed:
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:90:40: note: could not resolve address from overloaded function ‘& addressof<Box>’
                  &boost::addressof<Box>);
                                        ^
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:96:40: error: no matching function for call to ‘transform(std::vector<Box>::iterator, std::vector<Box>::iterator, std::back_insert_iterator<std::vector<const Box*> >, <unresolved overloaded function type>)’
                  &boost::addressof<Box>);
                                        ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:4295:5: note: candidate: template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)
     transform(_InputIterator __first, _InputIterator __last,
     ^~~~~~~~~
/usr/include/c++/7/bits/stl_algo.h:4295:5: note: template argument deduction/substitution failed:
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:96:40: note: could not resolve address from overloaded function ‘& addressof<Box>’
                  &boost::addressof<Box>);
                                        ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:4332:5: note: candidate: template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)
     transform(_InputIterator1 __first1, _InputIterator1 __last1,
     ^~~~~~~~~
/usr/include/c++/7/bits/stl_algo.h:4332:5: note: template argument deduction/substitution failed:
/home/christian/Downloads/cgal_examples/Surface_mesh/sm_do_intersect.cpp:96:40: note: could not resolve address from overloaded function ‘& addressof<Box>’
                  &boost::addressof<Box>);
                                        ^
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.