Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Kd_tree move constructible

Subject: CGAL users discussion list

List archive

[cgal-discuss] Kd_tree move constructible


Chronological Thread 
  • From: Bart Vermeulen <>
  • To: <>
  • Subject: [cgal-discuss] Kd_tree move constructible
  • Date: Wed, 25 Nov 2015 17:34:48 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-phdr: 9a23:ogk9EREeVEWXSnzvx3Dp651GYnF86YWxBRYc798ds5kLTJ75o8mwAkXT6L1XgUPTWs2DsrQf27eQ7PCrCTxIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niqbtq9aDM01hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv50IbaKvK683RLgdADU9OH0u/+XqswPCRE2B/C1PfH8Rl09iChLZpC/3RJL8ry/3sKIp0iCAIYvoQKoxVCmm4qFDVwLyziEDYW1quFrLg9B92foI6CmqoAZyltbZ
  • Organization: Wageningen University
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

Hi All,

I'm trying to use c++11 threads with a Kd_tree.

I have a function which takes a Kd_Tree as input:

void foo (Tree const & tree, ...) {
// Do something
}

Than I try to pass the function to a std::thread construction:

std::thread thethread(foo, tree, ...);

This gives me an error telling me that the constructor Kd_tree(const Tree& tree) is private.

The std::thread construction requires all parameters to be move constructible, but why is this construction private for a Kd_tree?

Is there some way around this issue?

Regards,
Bart Vermeulen

--
Bart Vermeulen
Wageningen University, Department of Environmental Sciences
Hydrology and Quantitative Water Management Group
Postal address: Postbus 47, 6700AA Wageningen,The Netherlands
Visiting address: Room 0.C027, Droevendaalsesteeg 3,6708PB Wageningen, The
Netherlands
Tel. +31-317-482765 Fax +31-317-419000
email:





Archive powered by MHonArc 2.6.18.

Top of Page