Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Allocate vector of kdtrees

Subject: CGAL users discussion list

List archive

[cgal-discuss] Allocate vector of kdtrees


Chronological Thread 
  • From: Zohar <>
  • To:
  • Subject: [cgal-discuss] Allocate vector of kdtrees
  • Date: Wed, 26 Oct 2011 04:11:04 -0700 (PDT)


Hi,

I'm trying to allocate a std::vector of kdtrees, but it complains about the
allocator:

#include <CGAL/Simple_cartesian.h>
#include <CGAL/Orthogonal_k_neighbor_search.h>
#include <CGAL/Search_traits_2.h>

typedef CGAL::Simple_cartesian<double> K;
typedef K::Point_3 Point_d;
typedef CGAL::Search_traits_2<K> TreeTraits;
typedef CGAL::Orthogonal_k_neighbor_search<TreeTraits> Neighbor_search;
typedef Neighbor_search::Tree KdTree;

vector<KdTree> kdtree;
kdtree.resize(5);


--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Allocate-vector-of-kdtrees-tp3940195p3940195.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page