xo-unit: bugfix: need ppdetail_atomic guard

This commit is contained in:
Roland Conybeare 2025-09-22 21:12:13 -04:00
commit e41be4bff2

View file

@ -22,14 +22,17 @@ namespace xo {
} /*namespace qty*/
namespace print {
#ifndef ppdetail_atomic
template <auto NaturalUnit, typename Repr>
struct ppdetail<xo::qty::quantity<NaturalUnit, Repr>> {
using target_type = xo::qty::quantity<NaturalUnit, Repr>;
static bool print_pretty(const ppindentinfo & ppii,
const target_type & x) {
return ppdetail_atomic<target_type>::print_pretty(ppii, x);
}
};
#endif
} /*namespace print*/
} /*namespace xo*/