xo-object2: APrintable+DFloat
This commit is contained in:
parent
a2e75071cc
commit
a903a058f1
9 changed files with 112 additions and 9 deletions
|
|
@ -4,9 +4,11 @@
|
|||
**/
|
||||
|
||||
#include "DFloat.hpp"
|
||||
#include <xo/indentlog/print/pretty.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::facet::typeseq;
|
||||
using xo::print::ppdetail_atomic;
|
||||
|
||||
namespace scm {
|
||||
DFloat *
|
||||
|
|
@ -18,6 +20,12 @@ namespace xo {
|
|||
|
||||
return new (mem) DFloat(x);
|
||||
}
|
||||
|
||||
bool
|
||||
DFloat::pretty(const ppindentinfo & ppii) const
|
||||
{
|
||||
return ppdetail_atomic<double>::print_pretty(ppii, value_);
|
||||
}
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue