xo-object2: APrintable+DFloat

This commit is contained in:
Roland Conybeare 2026-01-05 11:53:44 -05:00
commit a903a058f1
9 changed files with 112 additions and 9 deletions

View file

@ -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*/