Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Allocate vector of kdtrees
  • Date: Thu, 27 Oct 2011 08:26:29 +0200

Zohar wrote:
Yes, I can manage with pointers. But I'm curios, on one hand there's no
problem with the assignment operator, on the other hand the copy constructor
is blocked. Can't you simply execute the assignment operator from the copy
c'tor?
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Allocate-vector-of-kdtrees-tp3940195p3940394.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

IIRC, the copy constructor is not public because, a deep copy of
internal nodes should be done (I might be wrong). So the operator=
copy simply object that are deallocated when the original object is
deleted. If you feel courageous and are interested, you might have a
closer look and propose a patch that I'll be happy to review and
integrate.

Sebastien.



Archive powered by MHonArc 2.6.16.

Top of Page