January 20, 2018 Re: Relocatable objects and internal pointers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matt Elkins | On Saturday, 30 January 2016 at 03:13:59 UTC, Matt Elkins wrote: > std.typecons.Unique seems to require heap allocation, which makes it a far cry from std::unique_ptr. isn't unique_ptr typically for heap allocation? eg: https://stackoverflow.com/questions/42910711/unique-ptr-heap-and-stack-allocation NOTE: calypso (ldc fork) should allow internal pointers now, see https://github.com/Syniurge/Calypso/issues/70 (cv::Mat.step.p is an internal pointer) |
Copyright © 1999-2021 by the D Language Foundation