Fix warning on Windows 32bits: use boost::intmax_t for difference

This commit is contained in:
Simon Giraudot 2016-12-30 14:30:06 +01:00
parent 86a252c074
commit 136a4806e8
1 changed files with 2 additions and 10 deletions

View File

@ -41,14 +41,6 @@
#include <list>
#include <limits>
// The following lines only for MS Visual C++
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4244) // boost converts signed to std::size_t
#endif
namespace CGAL {
/*!
@ -714,8 +706,8 @@ private:
typename Pointer_property_map<Point>::type pmap = make_property_map(m_points);
Tree tree (boost::counting_iterator<std::size_t> (0),
boost::counting_iterator<std::size_t> (m_points.size()),
Tree tree (boost::counting_iterator<std::size_t, boost::use_default, boost::intmax_t> (0),
boost::counting_iterator<std::size_t, boost::use_default, boost::intmax_t> (m_points.size()),
typename Tree::Splitter(),
Search_traits (pmap));