mirror of https://github.com/CGAL/cgal
Merge pull request #5483 from danston/OTR-make_move_iterator_fix-danston
Kd_tree using vector constructor instead of insert
This commit is contained in:
commit
5a316aa479
|
|
@ -281,10 +281,8 @@ public:
|
|||
template <class InputIterator>
|
||||
Kd_tree(InputIterator first, InputIterator beyond,
|
||||
Splitter s = Splitter(),const SearchTraits traits=SearchTraits())
|
||||
: traits_(traits),split(s), built_(false), removed_(false)
|
||||
{
|
||||
pts.insert(pts.end(), first, beyond);
|
||||
}
|
||||
: traits_(traits), split(s), pts(first, beyond), built_(false), removed_(false)
|
||||
{ }
|
||||
|
||||
bool empty() const {
|
||||
return pts.empty();
|
||||
|
|
|
|||
Loading…
Reference in New Issue