Re: Problem Benchmarking HashSet from containers-em

2015-10-22 Thread Brian Schott via Digitalmars-d-learn
On Thursday, 22 October 2015 at 22:06:47 UTC, Nordlöw wrote: Can't I use InSituRegion in this way? No. InSituRegion is not copyable. Try creating a `HashSet!(InSituRegion*)` instead.

Re: Problem Benchmarking HashSet from containers-em

2015-10-22 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 22 October 2015 at 11:57:37 UTC, Nordlöw wrote: On Thursday, 22 October 2015 at 11:55:39 UTC, Nordlöw wrote: https://github.com/nordlow/justd/blob/master/containers_ex.d The current GitHub of containers_ex.d (using dmd git master) version works if justd repo is cloned recursively

Re: Problem Benchmarking HashSet from containers-em

2015-10-22 Thread Justin Whear via Digitalmars-d-learn
On Thu, 22 Oct 2015 19:41:08 +, Nordlöw wrote: > My existing call to > > auto set = HashSet!(E, Allocator)(); > > works for Mallocator as in > > https://github.com/nordlow/justd/blob/master/containers_ex.d#L17 > > but not for > > InSituRegion!(1024*1024, T.alignof) > > Why? Ple

Re: Problem Benchmarking HashSet from containers-em

2015-10-22 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 22 October 2015 at 17:32:34 UTC, Justin Whear wrote: On Thu, 22 Oct 2015 11:55:37 +, Nordlöw wrote: What's wrong? HashSet has a disabled default constructor; you need to supply the allocator instance to the constructor here https://github.com/nordlow/ justd/blob/master/con

Re: Problem Benchmarking HashSet from containers-em

2015-10-22 Thread Justin Whear via Digitalmars-d-learn
On Thu, 22 Oct 2015 11:55:37 +, Nordlöw wrote: > What's wrong? HashSet has a disabled default constructor; you need to supply the allocator instance to the constructor here https://github.com/nordlow/ justd/blob/master/containers_ex.d#L17

Re: Problem Benchmarking HashSet from containers-em

2015-10-22 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 22 October 2015 at 11:55:39 UTC, Nordlöw wrote: https://github.com/nordlow/justd/blob/master/containers_ex.d The current GitHub of containers_ex.d (using dmd git master) version works if justd repo is cloned recursively.