Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Kd Tree problem: cannot access Orthogonal_k_neighbor_search::Tree as it is private?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Kd Tree problem: cannot access Orthogonal_k_neighbor_search::Tree as it is private?


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] Kd Tree problem: cannot access Orthogonal_k_neighbor_search::Tree as it is private?
  • Date: Mon, 26 Mar 2012 11:51:26 +0200
  • Organization: GeometryFactory

freckles
<>
writes:

> I am facing this problem with Orthogonal_k_neighbor_search::Tree, when even
> using the same typedefs as the simple example on
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Spatial_searching/Chapter_main.html
> , I am unable to compile.

Can you provide a minimal example to reproduce this? Including the
compiler you used and which CGAL version. Which example is the simple
example? The only time `simple` appears on the page is in
`Simple_cartesian` ;)

>
> I get a "cannot access private member declared in class CGAL::Kd_tree"
> compile error and this makes *no* sense at all, because it is clearly
> declared public in the Kd_tree class.
>
> Is there any way this could ever occur?

Old versions of gcc used to ignore access specifiers of typedefs. But
the code passes our test-suite with new compilers, so this shouldn't be
an issue.

>
> Thanks :)
>

--
Philipp Moeller
GeometryFactory



Archive powered by MHonArc 2.6.16.

Top of Page