Boost logo

Boost :

Subject: Re: [boost] [voronoi] Issue with boost::polygon::voronoi_diagram<> as class variable
From: Andrii Sydorchuk (sydorchuk.andriy_at_[hidden])
Date: 2015-02-08 17:20:26

Hi Duke,

Sorry for the late reply the message was lost in my inbox.

Looks like you are using the assignment operator which is intentionally
prohibited by the library.
E.g. smth. like the following won't work:
voronoi_diagram<double> v1, v2;
v1 = v2; // Will not compile, with the same error as you have.

What you can do instead:
voronoi_diagram<double> *v1, *v2;
v1 = v2; // Works without compilation errors.

If you still have an issue, please attach the code snippet that doesn't

On Sat, Jan 10, 2015 at 6:31 AM, duke <dukecg_at_[hidden]> wrote:

> For some reason when I have a voronoi_diagram as a class variable (which it
> needs to be in this case), I get this error on compile:
> Error 49 error C2248: 'boost::polygon::voronoi_diagram<T>::operator =' :
> cannot access private member declared in class
> 'boost::polygon::voronoi_diagram<T>'
> I'm new to C# so it may be something obvious.
> - George
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at