Fix warnings

This commit is contained in:
Clement Jamin 2014-04-01 14:40:44 +02:00
parent 53b9729d71
commit 939b8b648f
6 changed files with 7 additions and 8 deletions

View File

@ -31,7 +31,7 @@ void test(const int d, const std::string & type, const int N)
std::vector<Point> points;
CGAL::Random rng;
Random_points_iterator rand_it(d, 2.0, rng);
CGAL::copy_n(rand_it, N, std::back_inserter(points));
CGAL::cpp11::copy_n(rand_it, N, std::back_inserter(points));
cost.reset();cost.start();
std::cout << " Delaunay triangulation of "<<N<<" points in dim "<<d<< std::flush;
dt.insert(points.begin(), points.end());

View File

@ -1403,7 +1403,7 @@ Triangulation_data_structure<Dimen, Vb, Fcb>
const int cur_dim = current_dimension();
// write the vertex indices of each full_cell
size_t i = 0;
int i = 0;
for( Full_cell_const_iterator it = full_cells_begin(); it != full_cells_end(); ++it )
{
index_of_full_cell[it] = i++;
@ -1528,10 +1528,9 @@ operator<<(std::ostream & os, const Triangulation_data_structure<Dimen, Vb, Fcb>
if( n == 0 )
return os;
size_t i(0);
// write the vertices
std::map<Vertex_handle, int> index_of_vertex;
int i = 0;
for( Vertex_iterator it = tr.vertices_begin(); it != tr.vertices_end(); ++it, ++i )
{
os << *it; // write the vertex

View File

@ -89,7 +89,7 @@ public:
int maximal_dimension() const /* Concept */
{
return vertices().size() - 1;
return static_cast<int>(vertices().size() - 1);
}
Vertex_handle_const_iterator vertices_begin() const /* Concept */

View File

@ -39,7 +39,7 @@ void test(const int d, const string & type, const int N)
vector<Point> points;
CGAL::Random rng;
Random_points_iterator rand_it(d, 2.0, rng);
//CGAL::copy_n(rand_it, N, back_inserter(points));
//CGAL::cpp11::copy_n(rand_it, N, back_inserter(points));
vector<int> coords(d);
for( int i = 0; i < N; ++i )

View File

@ -128,7 +128,7 @@ int main(int argc, char **argv)
{
int N = 5;
int nb_trials = 4;
int rand_init=time(NULL);
unsigned int rand_init = static_cast<unsigned int>(time(NULL));
if( argc > 1 )
N = atoi(argv[1]);
if( argc > 2 )

View File

@ -36,7 +36,7 @@ void test(const int d, const string & type, int N)
vector<Point> points;
CGAL::Random rng;
Random_points_iterator rand_it(d, 1.0, rng);
CGAL::copy_n(rand_it, N, std::back_inserter(points));
CGAL::cpp11::copy_n(rand_it, N, std::back_inserter(points));
cerr << '\n' << points.size() << " points in the grid.";