xo-expression2: + Expression facet
This commit is contained in:
parent
cbf6abb539
commit
38d18bf325
16 changed files with 636 additions and 4 deletions
38
xo-expression2/src/expression2/IExpression_Any.cpp
Normal file
38
xo-expression2/src/expression2/IExpression_Any.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/** @file IExpression_Any.cpp
|
||||
*
|
||||
**/
|
||||
|
||||
#include "detail/IExpression_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
using xo::facet::typeseq;
|
||||
using xo::facet::valid_facet_implementation;
|
||||
|
||||
void
|
||||
IExpression_Any::_fatal()
|
||||
{
|
||||
/* control here on uninitialized IAllocator_Any.
|
||||
* Initialized instance will have specific implementation type
|
||||
*/
|
||||
std::cerr << "fatal"
|
||||
<< ": attempt to call uninitialized"
|
||||
<< " IExpression_Any method"
|
||||
<< std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
typeseq
|
||||
IExpression_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
bool
|
||||
IExpression_Any::_valid
|
||||
= valid_facet_implementation<AExpression, IExpression_Any>();
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IExpression_Any.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue