xo-alloc2: progress on forwarding objects [WIP]
This commit is contained in:
parent
412e325e7b
commit
7fb5cfb432
2 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 **/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue