Fresh install of Ubuntu 18.04 on virtual machine, gives a following error when trying to build Mesher
#[ 5%] Building CXX object src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h: In instantiation of ‘bool CGAL::write_c3t3_to_vtk_xml_file(const C3t3&, const string&) [with C3t3 = C3t3_EIT; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/home/james/Mesher/src/Mesher_plus.cpp:282:69: required from here
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:64:14: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
V[it->point()] = i;
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:93:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v0->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:94:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v1->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:95:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v2->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:96:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v3->point()] << std::endl;
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
src/CMakeFiles/mesher.dir/build.make:62: recipe for target 'src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o' failed
make[2]: *** [src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/mesher.dir/all' failed
make[1]: *** [src/CMakeFiles/mesher.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
james@james-VirtualBox:~/Mesher/build$ make < out.log
bash: out.log: No such file or directory
james@james-VirtualBox:~/Mesher/build$ make > out.log
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h: In instantiation of ‘bool CGAL::write_c3t3_to_vtk_xml_file(const C3t3&, const string&) [with C3t3 = C3t3_EIT; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/home/james/Mesher/src/Mesher_plus.cpp:282:69: required from here
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:64:14: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
V[it->point()] = i;
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:93:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v0->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:94:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v1->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:95:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v2->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:96:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v3->point()] << std::endl;
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
make[2]: *** [src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/mesher.dir/all] Error 2
make: *** [all] Error 2
james@james-VirtualBox:~/Mesher/build$ gedit out.log
james@james-VirtualBox:~/Mesher/build$ make | tee out.log
[ 5%] Building CXX object src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h: In instantiation of ‘bool CGAL::write_c3t3_to_vtk_xml_file(const C3t3&, const string&) [with C3t3 = C3t3_EIT; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/home/james/Mesher/src/Mesher_plus.cpp:282:69: required from here
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:64:14: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
V[it->point()] = i;
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:93:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v0->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:94:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v1->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:95:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v2->point()] << " ";
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
In file included from /home/james/Mesher/src/Mesher_plus.cpp:10:0:
/home/james/Mesher/src/write_c3t3_to_vtk_xml_file.h:96:26: error: no match for ‘operator[]’ (operand types are ‘std::map<CGAL::Point_3<CGAL::Epick>, int>’ and ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’)
vtk_file << V[v3->point()] << std::endl;
~^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/CGAL/Profile_counter.h:58,
from /usr/include/CGAL/Uncertain.h:26,
from /usr/include/CGAL/assertions.h:353,
from /usr/include/CGAL/basic.h:42,
from /usr/include/CGAL/Cartesian/Cartesian_base.h:28,
from /usr/include/CGAL/Simple_cartesian.h:28,
from /usr/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:28,
from /home/james/Mesher/src/CGAL_include.h:7,
from /home/james/Mesher/src/Mesher_plus.cpp:2:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘const key_type& {aka const CGAL::Point_3<CGAL::Epick>&}’
/usr/include/c++/7/bits/stl_map.h:504:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = CGAL::Point_3<CGAL::Epick>; _Tp = int; _Compare = std::less<CGAL::Point_3<CGAL::Epick> >; _Alloc = std::allocator<std::pair<const CGAL::Point_3<CGAL::Epick>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = CGAL::Point_3<CGAL::Epick>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from ‘CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Compact_mesh_cell_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3<CGAL::Epick>, CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3, CGAL::Epick>, void>, CGAL::Sequential_tag> > >::Point {aka CGAL::Weighted_point_3<CGAL::Epick>}’ to ‘std::map<CGAL::Point_3<CGAL::Epick>, int>::key_type&& {aka CGAL::Point_3<CGAL::Epick>&&}’
make[2]: *** [src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o] Error 1
src/CMakeFiles/mesher.dir/build.make:62: recipe for target 'src/CMakeFiles/mesher.dir/Mesher_plus.cpp.o' failed
make[1]: *** [src/CMakeFiles/mesher.dir/all] Error 2
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/mesher.dir/all' failed
make: *** [all] Error 2
Makefile:94: recipe for target 'all' failed
This is with version 4.11-2build2 of cgallib-dev , where confirmed working version on Ubuntu 16.04 is 4.7-4