Comment #0 by stojkovic.igor — 2017-09-03T16:47:08Z
Same goes for sharedAllocatorObject. Currently allocatorObject under this:
static if (is(typeof({ A b = a; A c = b; }))) // copyable
finishes with
return cast(CAllocatorImpl!A) emplace!(CAllocatorImpl!A)(state);
I believe it should do this:
auto res = cast(CAllocatorImpl!A) emplace!(CAllocatorImpl!A)(state);
res.impl = a;
return res;
Or CAllocatorImpl should have a constructor which does this and takes a as a parameter for this case.
Comment #1 by robert.schadek — 2024-12-01T16:30:46Z