+ xo-numeric/ [WIP]
This commit is contained in:
parent
625ecf20c5
commit
070d333a07
16 changed files with 663 additions and 6 deletions
41
xo-numeric/src/numeric/INumeric_Any.cpp
Normal file
41
xo-numeric/src/numeric/INumeric_Any.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/** @file INumeric_Any.cpp
|
||||
*
|
||||
**/
|
||||
|
||||
#include "detail/INumeric_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
using xo::facet::typeseq;
|
||||
using xo::facet::valid_facet_implementation;
|
||||
|
||||
void
|
||||
INumeric_Any::_fatal()
|
||||
{
|
||||
/* control here on uninitialized IAllocator_Any.
|
||||
* Initialized instance will have specific implementation type
|
||||
*/
|
||||
std::cerr << "fatal"
|
||||
<< ": attempt to call uninitialized"
|
||||
<< " INumeric_Any method"
|
||||
<< std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
typeseq
|
||||
INumeric_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
bool
|
||||
INumeric_Any::_valid
|
||||
= valid_facet_implementation<ANumeric, INumeric_Any>();
|
||||
|
||||
// nonconst methods
|
||||
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end INumeric_Any.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue