xo-alloc2: progress on forwarding objects [WIP]

This commit is contained in:
Roland Conybeare 2025-12-15 00:56:49 -05:00
commit 7fb5cfb432
2 changed files with 4 additions and 1 deletions

View file

@ -62,6 +62,7 @@ namespace xo {
using ISpecific = FacetImplType<AFacet, DRepr>;
using DataType = DRepr;
using DataPtr = DRepr*;
using Opaque = void *;
explicit OObject() {}
explicit OObject(DataPtr d) : data_{d} {}
@ -127,8 +128,10 @@ namespace xo {
}
DataPtr data() const { return data_; }
Opaque opaque_data() const { return data_; }
void reset() { data_ = nullptr; }
void reset_opaque(Opaque data) { data_ = (DataPtr)data; }
/**
* We're either:

View file

@ -89,7 +89,7 @@ namespace xo {
**/
template <typename AFacet, typename DRepr>
struct FacetImplementation {
static_assert(false && "expect specialization <AFacet,DRepr> which should provide ImplType trait");
//static_assert(false && "expect specialization <AFacet,DRepr> which should provide ImplType trait");
};
/** Retrieve facet implementation for a (facet, datatype) pair **/