Open
Description
If I have the following code:
#include <memory>
#include <vector>
struct S {
std::vector<int> v;
};
int main() {
auto p = std::make_shared<S>();
p->v.push_back(1);
auto a = std::shared_ptr<int>(p, &p->v[0]);
}
It's valid and works with shared_ptr, but is currently not allowed by ptr_to. I.e. they do not expose equivalent functionality.
link to ptr_to: https://github.com/hsutter/gcpp/blob/master/deferred_heap.h#L487