xo-unit: bugfix: need ppdetail_atomic guard
This commit is contained in:
parent
d9b7ae2263
commit
e41be4bff2
1 changed files with 3 additions and 0 deletions
|
|
@ -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*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue