+ xo-printable2 + build fixes for cmake config
This commit is contained in:
parent
6cdd6c494c
commit
402cf9b852
29 changed files with 724 additions and 72 deletions
38
xo-printable2/src/printable2/IPrintable_Any.cpp
Normal file
38
xo-printable2/src/printable2/IPrintable_Any.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/** @file IPrintable_Any.cpp
|
||||
*
|
||||
**/
|
||||
|
||||
#include "detail/IPrintable_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace print {
|
||||
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
using xo::facet::typeseq;
|
||||
using xo::facet::valid_facet_implementation;
|
||||
|
||||
void
|
||||
IPrintable_Any::_fatal()
|
||||
{
|
||||
/* control here on uninitialized IAllocator_Any.
|
||||
* Initialized instance will have specific implementation type
|
||||
*/
|
||||
std::cerr << "fatal"
|
||||
<< ": attempt to call uninitialized"
|
||||
<< " IPrintable_Any method"
|
||||
<< std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
typeseq
|
||||
IPrintable_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
bool
|
||||
IPrintable_Any::_valid
|
||||
= valid_facet_implementation<APrintable, IPrintable_Any>();
|
||||
|
||||
} /*namespace print*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IPrintable_Any.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue