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.

I updated

https://github.com/nordlow/justd/blob/master/containers_ex.d

as you say but now it errors as

/home/per/Work/justd/containers/hashset.d(46,19): Error: struct std.experimental.allocator.building_blocks.region.InSituRegion!(1048576LU, 4LU).InSituRegion is not copyable because it is annotated with @disable /home/per/Work/justd/containers/hashset.d(42,11): Error: incompatible types for ((allocator) !is (null)): 'InSituRegion!(1048576LU, 4LU)' and 'typeof(null)' /home/per/Work/justd/containers/hashset.d(366,20): Error: struct std.experimental.allocator.building_blocks.region.InSituRegion!(1048576LU, 4LU).InSituRegion is not copyable because it is annotated with @disable
/home/per/opt/x86_64-unknown-linux-gnu/dlang/linux/bin64/src/phobos/std/conv.d(4096,13): 
Error: static assert  "Bucket cannot be emplaced from (InSituRegion!(1048576LU, 
4LU))."
/home/per/opt/x86_64-unknown-linux-gnu/dlang/linux/bin64/src/phobos/std/conv.d(4161,18):
        instantiated from here: emplaceImpl!(InSituRegion!(1048576LU, 4LU))
/home/per/Work/justd/containers/hashset.d(293,19): instantiated from here: emplace!(Bucket, InSituRegion!(1048576LU, 4LU)) containers_ex.d(34,24): instantiated from here: HashSet!(int, InSituRegion!(1048576LU, 4LU), generateHash, false) containers_ex.d(82,31): instantiated from here: hashSet!(InSituRegion!(1048576LU, 4LU), Result)

Can't I use InSituRegion in this way?

Reply via email to