InSituRegion + allocatorObject compile time error
ref2401 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 29 07:27:53 PST 2016
Getting this error, could someone explain why?
void main(string[] args) {
InSituRegion!(1024) stackAlloc;
IAllocator alloc = allocatorObject(stackAlloc);
}
..\src\phobos\std\conv.d(5055):
Error: static assert "Don't know how to initialize an object of
type CAllocatorImpl!(InSituRegion!(1024u, 8u), cast(Flag)false)
with arguments (InSituRegion!(1024u, 8u))"
..\src\phobos\std\experimental\allocator\package.d(1175):
instantiated from here:
emplace!(CAllocatorImpl!(InSituRegion!(1024u, 8u),
cast(Flag)false), InSituRegion!(1024u, 8u))
main.d(15):
instantiated from here: allocatorObject!(InSituRegion!(1024u, 8u))
Thank you
More information about the Digitalmars-d-learn
mailing list