xo-interpreter2: scaffold repl + alloc measurement frameowkr
This commit is contained in:
parent
7028fa49f8
commit
f6aae4190e
42 changed files with 1398 additions and 198 deletions
41
xo-alloc2/src/alloc2/IResourceVisitor_Any.cpp
Normal file
41
xo-alloc2/src/alloc2/IResourceVisitor_Any.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/** @file IResourceVisitor_Any.cpp
|
||||
*
|
||||
**/
|
||||
|
||||
#include "visitor/IResourceVisitor_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace mm {
|
||||
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
using xo::facet::typeseq;
|
||||
using xo::facet::valid_facet_implementation;
|
||||
|
||||
void
|
||||
IResourceVisitor_Any::_fatal()
|
||||
{
|
||||
/* control here on uninitialized IAllocator_Any.
|
||||
* Initialized instance will have specific implementation type
|
||||
*/
|
||||
std::cerr << "fatal"
|
||||
<< ": attempt to call uninitialized"
|
||||
<< " IResourceVisitor_Any method"
|
||||
<< std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
typeseq
|
||||
IResourceVisitor_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
bool
|
||||
IResourceVisitor_Any::_valid
|
||||
= valid_facet_implementation<AResourceVisitor, IResourceVisitor_Any>();
|
||||
|
||||
// nonconst methods
|
||||
|
||||
|
||||
} /*namespace mm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IResourceVisitor_Any.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue