xo-alloc2: + Allocator.expand() + streamlining _Any
This commit is contained in:
parent
e0dd9d2a1c
commit
12ade26a79
8 changed files with 167 additions and 18 deletions
|
|
@ -4,6 +4,7 @@
|
|||
**/
|
||||
|
||||
#include "IAllocator_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
|
|
@ -12,6 +13,17 @@ namespace xo {
|
|||
|
||||
namespace mm {
|
||||
|
||||
void
|
||||
IAllocator_Any::_fatal() {
|
||||
/* control here on uninitialized IAllocator_Any.
|
||||
* Initialized instance will have specific implementation type
|
||||
* e.g. IAllocator_Xfer<DArena>
|
||||
*/
|
||||
|
||||
std::cerr << "fatal: attempt to call uninitialized IAllocator_Any" << std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
int32_t
|
||||
IAllocator_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue