mirror of https://github.com/CGAL/cgal
Fix GCC compilation
This commit is contained in:
parent
bebed84a3b
commit
01b81c5bcb
|
|
@ -63,12 +63,16 @@ public:
|
||||||
|
|
||||||
typedef typename Tr::Point Point;
|
typedef typename Tr::Point Point;
|
||||||
typedef typename Base::Edge Edge;
|
typedef typename Base::Edge Edge;
|
||||||
|
typedef typename Base::Facet Facet;
|
||||||
typedef typename Base::Vertex_handle Vertex_handle;
|
typedef typename Base::Vertex_handle Vertex_handle;
|
||||||
|
typedef typename Base::Cell_handle Cell_handle;
|
||||||
typedef CornerIndex Corner_index;
|
typedef CornerIndex Corner_index;
|
||||||
typedef CurveSegmentIndex Curve_segment_index;
|
typedef CurveSegmentIndex Curve_segment_index;
|
||||||
|
|
||||||
typedef typename Base::Triangulation Triangulation;
|
typedef typename Base::Triangulation Triangulation;
|
||||||
|
|
||||||
|
using Base::surface_patch_index;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Type to store the edges:
|
// Type to store the edges:
|
||||||
// - a set of std::pair<Vertex_handle,Vertex_handle> (ordered at insertion)
|
// - a set of std::pair<Vertex_handle,Vertex_handle> (ordered at insertion)
|
||||||
|
|
@ -219,16 +223,16 @@ public:
|
||||||
{
|
{
|
||||||
Triangulation &tr = triangulation();
|
Triangulation &tr = triangulation();
|
||||||
//triangulation().remove(far_vertices_.begin(), far_vertices_.end());
|
//triangulation().remove(far_vertices_.begin(), far_vertices_.end());
|
||||||
Far_vertices_vec::const_iterator it = far_vertices_.begin();
|
typename Far_vertices_vec::const_iterator it = far_vertices_.begin();
|
||||||
Far_vertices_vec::const_iterator it_end = far_vertices_.end();
|
typename Far_vertices_vec::const_iterator it_end = far_vertices_.end();
|
||||||
for ( ; it != it_end ; ++it)
|
for ( ; it != it_end ; ++it)
|
||||||
{
|
{
|
||||||
std::vector<Cell_handle> new_cells;
|
std::vector<Cell_handle> new_cells;
|
||||||
new_cells.reserve(32);
|
new_cells.reserve(32);
|
||||||
tr.remove_and_give_new_cells(*it, std::back_inserter(new_cells));
|
tr.remove_and_give_new_cells(*it, std::back_inserter(new_cells));
|
||||||
|
|
||||||
std::vector<Cell_handle>::iterator nc_it = new_cells.begin();
|
typename std::vector<Cell_handle>::iterator nc_it = new_cells.begin();
|
||||||
std::vector<Cell_handle>::iterator nc_it_end = new_cells.end();
|
typename std::vector<Cell_handle>::iterator nc_it_end = new_cells.end();
|
||||||
for ( ; nc_it != nc_it_end ; ++nc_it)
|
for ( ; nc_it != nc_it_end ; ++nc_it)
|
||||||
{
|
{
|
||||||
Cell_handle c = *nc_it;
|
Cell_handle c = *nc_it;
|
||||||
|
|
|
||||||
|
|
@ -73,14 +73,14 @@ namespace CGAL {
|
||||||
|
|
||||||
#if defined(CGAL_LINKED_WITH_TBB)\
|
#if defined(CGAL_LINKED_WITH_TBB)\
|
||||||
&& !defined(CGAL_PARALLEL_MESH_3_DO_NOT_ADD_OUTSIDE_POINTS_ON_A_FAR_SPHERE)
|
&& !defined(CGAL_PARALLEL_MESH_3_DO_NOT_ADD_OUTSIDE_POINTS_ON_A_FAR_SPHERE)
|
||||||
if (boost::is_convertible<C3T3::Concurrency_tag, CGAL::Parallel_tag>::value)
|
if (boost::is_convertible<typename C3T3::Concurrency_tag, CGAL::Parallel_tag>::value)
|
||||||
{
|
{
|
||||||
if (dimension == -1)
|
if (dimension == -1)
|
||||||
r_c3t3_.add_far_point(new_vertex);
|
r_c3t3_.add_far_point(new_vertex);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef CGAL_SEQUENTIAL_MESH_3_ADD_OUTSIDE_POINTS_ON_A_FAR_SPHERE
|
#ifdef CGAL_SEQUENTIAL_MESH_3_ADD_OUTSIDE_POINTS_ON_A_FAR_SPHERE
|
||||||
if (boost::is_convertible<C3T3::Concurrency_tag, CGAL::Sequential_tag>::value)
|
if (boost::is_convertible<typename C3T3::Concurrency_tag, CGAL::Sequential_tag>::value)
|
||||||
{
|
{
|
||||||
if (dimension == -1)
|
if (dimension == -1)
|
||||||
r_c3t3_.add_far_point(new_vertex);
|
r_c3t3_.add_far_point(new_vertex);
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ namespace Mesh_3 {
|
||||||
************************************************/
|
************************************************/
|
||||||
|
|
||||||
// Sequential
|
// Sequential
|
||||||
template <typename C3T3, typename Concurrency_tag = C3T3::Concurrency_tag>
|
template <typename C3T3, typename Concurrency_tag = typename C3T3::Concurrency_tag>
|
||||||
class Remove_far_points
|
class Remove_far_points
|
||||||
{
|
{
|
||||||
#ifdef CGAL_SEQUENTIAL_MESH_3_ADD_OUTSIDE_POINTS_ON_A_FAR_SPHERE
|
#ifdef CGAL_SEQUENTIAL_MESH_3_ADD_OUTSIDE_POINTS_ON_A_FAR_SPHERE
|
||||||
|
|
|
||||||
|
|
@ -385,5 +385,10 @@ int main()
|
||||||
Tester<K_e_e> test_epec;
|
Tester<K_e_e> test_epec;
|
||||||
test_epec();
|
test_epec();
|
||||||
|
|
||||||
|
int *p = new int;
|
||||||
|
*p = 18;
|
||||||
|
std::cout << *p << std::endl;
|
||||||
|
p = 0;
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue